On Mon, Oct 26, 2009 at 3:53 PM, Hossein Sharifi
<shar...@rateyourmusic.com> wrote:
>  2) http://junom.com/document/twt/view/www/  - it seems to be actively
> maintained given the fact that there are files in that directory created
> last month, but is it easy to install? And has it been tested in a
> production environment?

I'm the maintainer. The current home for this is the tnt project:

http://www.junom.com/gitweb/gitweb.perl?p=tnt.git

It is still the "view" package, but requires, at least, the tnt
package for logging.

If you need help installing, please take advantage and ask here or via
direct email. Any helpful hits will be shared as better documentation.

The templating system is called <tic-tac-toe>,  somewhat shorter than
"A templating toolkit for tcl". Although the files you saw have been
updated recently, the actual code hasn't changed. It is relatively
stable and the extension mechanism is well defined, so only actual
bugs demand attention.

But the templating system is somewhat conservative. You have to "add
resources" in order to access anything outside of a particular
template (the setup tcl file adds the resources).  The whole point was
a safe system where templates of unknown intent could safely be used.
So, by default, template cannot execute unsafe commands, but resources
can execute arbitrary code.

The Tic-Tac-Toe example (
http://junom.com/document/twt/view/www/tic-tac-toe.tcl ) is
non-trivial  and demonstrates many of the features. The tnt toolkit
has hundreds of examples of template files and a few examples of how
to organize a website wide templating system.

The readme file explains the language basics:
http://junom.com/document/twt/view/www/README

The template compiler is written in flex/bison so it it fast, but it
also validates syntax. When an error occurs, you get a temporary file
which ends close to the error. It is usually easy to find and fix
syntax errors. The "compiled" template is just tcl code, once
compiled, the compiled version remains valid until the original
template file gets a newer timestamp. (You can use touch to force a
recompile).

>  3) Are there any others?

Good question.

tom jackson


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to