|
||||||||||||
|
|
||||||||||||
TemplatesAnvil templates a very similar to scripts. Codebase is same but templates contains limited functionality. Templates are split up to processing instructions, tags, character datas and comments by anvil.parser.Parser which is a flexible, but elementary, tag-oriented parser: it never generates any errors. Functionality of this parser is usable through anvil.xml.parse(). Overview template grammar is here. <module>, <namespace>, <class>, <function>, <var> and <const> are used declare language constructs, just like their cousins in scripts. Most of template statement tags corresponds to same functionaly in script statements. Information about character data handling is here. Own custom tags can be created with tag libraries in the spirit of JSP.
See also
| Language reference
|
||||||||||||
|
|
||||||||||||