Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Templates > Tags > <module>

<module>

  <module 
      [ name="symbolname" ]
      [ preserve | compress | pack | silent ] >
    ( <import>
    | <const>
    | <var>
    | <function>  
    | <class>
    | <namespace> ) * 
  </module>

A ``moduleยดยด defines a module. Module can contain imports, constants, variables, functions, classes and namespaces.

Attributes:

name
Optional name of module.
preserve
Content control: retain content as is
compress
Content control: compress white spaces. This is the default option.
pack
Content control: radically compress white spaces.
silent
Content control: do not print text and tags

Content control attributes are mutually exclusive, and behaviour defined here will inherit to children. Behaviour can also be modified with content control tags.

Contributes notes:
Add a note
What's new | Anvil