ANN: Yats 0.1

Brett Haydon bbhaydon at bigpond.com
Sat May 19 06:27:29 EDT 2001


Yats is Yet Another Template System primarily for use to output dynamic
HTML documents.

http://www.users.bigpond.com/bbhaydon/yats.html

It is designed to allow separation of logic from presentation and was
written to be
used with modpython's modpublisher module (www.modpython.org) though should
work fine with cgi scripts.

It is derived heavily from HTMLgen's TemplateDocuments and has similar
usage.
It supports:
    - Simple substitutions
    - Conditional Extraction/Inserts
    - Loops

Usage:
The user designs their web document in their favourite web design
tool and embeds tags,  "{ tags}" within the document to be substituted.
Loops and Conditional Inserts are flagged by simple comment tags
"<!--{tag}-->" that designate blocks to be iterated over or removed
depending on the python logic. Tags are removed from the output page
if there is no data to be substituted, but Conditional Inserts will be left
unless extracted.

Thats basically it..
regards,

Brett Haydon
bbhaydon at bigpond.com

















More information about the Python-list mailing list