Patrick,
Very cool. I've placed a link to it from the wiki (under
"Miscellaneous") at:
http://panoptic.com/wiki/aolserver/AOLserverContributedSoftware
- Dossy
On 2001.06.25, Patrick Kelly <[EMAIL PROTECTED]> wrote:
> (I've just been catching up on a few months of archived aolserver-list
> emails, so forgive me for awakening a sleeping thread.)
>
> Folks are welcome to use my simple-templating system which contains
> registered ADP tags to do conditional blocks of HTML, and the ability
> to loop over lists of ns_sets (fetched from the DB).
>
> Docs and downloads at http://www.oakroad.net/simple-templates/
>
> Examples:
>
> <if "$variable" eq "fred">
> This is included if the variable is fred.
> </if>
>
> in a .tcl file:
>
> set dbresults [template_query $db "
> select rownum, user_id, email
> from users
> order by email
> "]
>
> in associated .html file:
>
> <loop list=dbresults>
> <tr>
> <td><var rownum></td>
> <td><var user_id></td>
> <td><var email></td>
> </tr>
> </loop>
>
> This stuff is my simplified version of the old ACS templating system
> written by Karl Goldstein at aD, but should work on (just about) any
> aolServer with fancy ADP parsing enabled.
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/