Defines new tags, container tags or defines.
Attributes
- container=name
-
Define a new RXML container tag, or override a previous definition.
- name=name
-
Sets the specified define. Can be inserted later by the
<insert> tag.
- tag=name
-
Defines a new RXML tag, or overrides a previous definition.
- default_attribute=value
-
Set a default value for an attribute, that will be used when the
attribute is not specified when the defined tag is used.
You can use a few special tokens in the definition of tags and
container tags:
- #args#
- All attributes sent to the tag. Useful when
defining a new tag that is more or less only an alias for an old one.
- &attribute;
- Inserts the value of that attribute.
Example
<define container=h1>
<gtext fg=blue #args#><contents></gtext>
</define>
<h1>Hello</h1>
<define tag=test default_foo=foo
default_bar=bar>
The test tag: Testing testing.
Foo is &foo;, bar is &bar;
</define>
<test foo=Hello bar=World>
<br><test foo=Hello>
The test tag: Testing testing.
Foo is Hello, bar is World
The test tag: Testing testing.
Foo is Hello, bar is bar
|