docs.roxen.com
main | demo | docs
download | community | pike
2000 Roxen Internet Software
Suggestions, Comments or Complaints
manuals@roxen.com

DocsRoxen2.0Web Site Creator ManualVariable tags


  • <append>
  • <dec>
  • <define>
  • <inc>
  • <insert>
  • <scope>
  • <set>
  • <undefine>
  • <unset>
  • <use>
  • <define></define>

    Defines variables, tags, containers and if-callers. One, and only one, attribute must be set.

    Attributes

    variable
    variable=name
    Sets the value of the variable to the contents of the container.
    tag
    tag=name
    Defines a tag that outputs the contents of the container.
    container
    container=name
    Defines a container that outputs the contents of the container.
    if
    if=name
    Defines an if-caller that compares something with the contents of the container.
    trimwhites
    Trim all white space characters from the begining and the end of the contents.
    The values of the attributes given to the defined tag are available in the scope created within the define tag.
    <define tag="hi">Hello _.name!</define>
    <hi name="Martin"/>
    Hello _.name!

    &_.contents;
    The containers contents.

    &_.args;
    The full list of the attributes, and their arguments, given to the tag.

    <attrib></attrib>

    When defining a tag or a container the container <attrib> can be used to define default values of the attributes that the tag/container can have.

    Attributes

    name
    name=name
    The name of the attribute which default value is to be set.

    <contents/>

    As the contents entity, but unquoted.

    &_.rest-args;
    A list of the attributes, and their arguments, given to the tag, excluding attributes with default values defined.