There a lot of tags and containers you can add to your documents. They
will let you do simple things like printing the current time or the
number of accesses to a document. More complex containers let you
query databases or send mail from data that has been entered into a form.
How about inserting some information like the date, the browser version,
the referring page.
|
Source code
|
The current time and date is <date>
and you're using <clientname>.
You came from <referrer> and the
last modification
to this document had been <modified>.
|
|
Result
|
The current time and date is 19:11, June the 9th, 1999
and you're using Mozilla/4.07.
You came from .. and the
last modification
to this document had been June 3rd.
|
If a document with such tags is requested, Roxen Challenger scans it
and replaces the tags with the appropriate information. This doesn't
only work for tags, but also for containers. Roxen can easily build
tables from data. No more ugly HTML formating.
|
Source code
|
<tablify cellseparator="#">
apples # bananas # total
1.183 # 4.214 # 5.397
</tablify>
|
|
Result
|
| apples | bananas | total |
| 1.183 | 4.214 | 5.397 |
|
Roxen offers some more tags and containers to ease the pain of writing
documents. You simply write high level commands and Roxen will translate
them into HTML. This makes it easy to later edit your documents since
you don't have to dig through tons of HTML code.
But Roxen not only does HTML for you, it also produces graphics on the
fly. Ever wanted to get have some smart graphical text in your documents.
<gtext> is your friend.
|
Source code
|
<gtext scale=0.5>simple text</gtext>
<br>
<gtext scale=0.6 shadow=0.2,1
rotate=10 scolor="#666666"
fg="#3333cc">The time is <date time></gtext>
|
|
Result
|
|
Have you realized that you can nest different containers?
You can even do some programing in RXML. The <if> container
will perform some conditional tests.
|
Source code
|
<if date=20000101 before>
The year 2000 is yet to come.
</if>
<else>
We obviously survived the Y2k problem.
</else>
|
|
Result
|
The year 2000 is yet to come.
|
To see a list of available tags and containers, put <list-tags>
into your document. To get some information about a special tag or
container, use the help attribute: <obox help>.
Additionally, the online documentation gives a lot of examples.