mvc • Compare script languages syntaxes - martindubenet/wed-dev-design GitHub Wiki
[ Localize text language strings ][ Common UI strings ][ Script languages syntaxes ]
Useful for doing fast « Search & Replace » actions in a temples page.
Platform | Opening/Closing tags | Conditions | Multi conditions | Shorthand conditions | Comments |
---|---|---|---|---|---|
Mustache templating |
{{ }}
|
||||
Djanco |
{{ }}
|
if, elsif, else, endif | and, or |
<!-- -->
|
|
C# Razor.CSHTML |
@( )
|
== |
"#= Value ? 'True_String' : 'False_String' #" — @(ViewBag.Value ? "True_String" : "False_String")
|
@* *@
|
|
C# Kentico portal engine ASCX |
{% #%}
|
if, elseif, else, end | # |
@* *@
|
|
PHP |
<?php , <?= ?>
|
/* */
|
|||
PHP Silex or Symfony |
/* */
|
||||
VueJS |
{{ }} , @click="" ,return this.key;
|
:prop , :class="{ css-class: vueParameter }" , v-if v-else
|