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 > <class>

<class>

  <class 
      name="symbolname"
      [ extends="dotted-nameclass" ]
      [ implements="list-of-dotted-namesinterfaces" ]
      [ preserve | compress | pack | silent ] >
    ( <import>
    | <const>
    | <var>
    | <function>  
  </class>

An ``class´´ tag declares a class to currently enclosing scope.

Attributes:

name
Name of class
extends
Optional dotted name referring to class to extend.
implements
Optional list of dotted name referring to interfaces to implement.
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.

What's new | Anvil