September 2017
Intermediate to advanced
408 pages
9h 25m
English
The g:function and g:call tags can be used to implement much better encapsulation than that offered by the g:insert and g:inline tags. The g:function tag can be added to your Jelly code to define the parameters it can accept by specifying them as one of the attributes of the tag. If we want to mark one of the attributes as required, we have to set its value to REQUIRED. Any other value will mean that the field is not required and will have a default value.
For example -g:function:
<g:function id="REQUIRED" city="REQUIRED" address="" zipcode="REQUIRED"/>
In the preceding example, the attributes id, city, and zipcode are required. The address attribute is marked as nonmandatory and doesn't have a default value.
The
Read now
Unlock full access