GWC Template Language Reference / Template Expressions |
Embedded expressions are template expressions that can be processed in all text-based elements (texts, comments, processing instructions, and so on), as well as in attribute values and processing instructions. The syntax is a shortcut that does not need any gwc instruction.
{ template_expression }
<link href='{resourceuri("css_theme.css","SetHtml5")}' rel='stylesheet' type='text/css' />
<p>{ application/ui/topmostNormalWindow/form/staticLabel['label1']/text}</p>
<script type="text/javascript"> var gwc = {{ initTime:new Date().getTime(), cfg:{{} } </script>
<p class="{text}" gwc:attributes="class _tpl_" gwc:content="text"/>
<input type="submit" value="{form/staticLabel['label1']/text}" gwc:attributes="value 'has been overriden'" />
<p gwc:content="'has been overriden'">{form/staticLabel['label1']/text}</p>