Template Instructions / Template Instructions |
The define instruction declares a local variable that can be used in the HTML tag (the current element) and in its child elements. This variable is undefined outside of the current element.
<tag gwc:define="var expression [; ...]" ...> ... </tag>
<div gwc:define="i menu">
i is set to the current item of a menu.