Website Templating
A template engine is a piece of software that processes an input text (the template) to produce one or more output texts.The processing itself generally consists in replacing specific sequences of text with data provided by a model or resulting from more complex operations.
From : en.wikipedia.org/wiki/Template_engine
AHTS
AHTS stands for An HTML Templating System. It is an implementation of the templating system invented by Ars Digita, ACS Templating, in Python.
AHTS tries to mimic the designer side (i.e. the tags) of the ACS templating system as close as possible.
AHTS is ment to faciliate the development of Dynamic of Pseudo Dynamic websites, by separating the code from HTML. This is the panacea of all Templating Systems, but it's not the solution to all problems: you will have to put HTML in the code sometimes. AHTS doesn't try to provide all possible programming constructs, but expects that the programmer is responsible for providing data, while the designer is responsible for represantation of the data. There is currently no way to define your own tags. if you have a need to define your own tags, you'd better use a full content managment system.
AHTS is build to be easy for the user, not for the Template System programmer. So it doesn't use regex-replacements, but instead consists of a real Parser, so we can check wheter the document is syntactically correct.
visit
AHTS
AHTS was visited : 120 times
Loading .....