Riverwatcher Active Content Environment

RACE Documentation:

ATTRIBUTES HASH - A list of tag attributes

Example - Creating a nice and pretty DATABASE tag

<define strip balanced tag="db">
  <database name="mydatabase" user="myusername" password="mysecretpassword" type="mysql" <%attributes>><$caller.body></database>
  <if test="<$database.error> != ''">
    <table border="1" bgcolor="#ff0000">
    <td>Database Error</td>

<db query="SELECT * FROM favoritecolors">
  <#name>, <#favoritecolor><br>

Now you don't have to enter the login, host and password every time, and if there's an error, it will be reported.

RACE Documentation

Copyright 2009 Riverwatcher, Inc. Hosting by Riverwatcher Studios