Version 19 of Template and Macro processing

Updated 2005-06-09 13:18:06 by escargo

This page collects information about Tcl applications and libraries that facilitate the processing of templates and/or macro files.


A dedicated T/M processor is expand by William Duquette. Note: The core of expand was added to tcllib/textutil.

Tmac http://www.tclbuzz.com/v0/tmac is a general-purpose macro package for expanding and substituting Tcl code. - Roy Terry, 2 April 2003. There is also a wiki page devoted to tmac and to comments, suggestions and discussion: Tmac - a Tcl macro processor package.

Two Tcl-based webservers, TclHttpd by Brent Welch and the Kinetic Application Processor by AsiaInfo, incorporate template processors as a means to serve pages with dynamic content and to allow the imposition of a site-wide look & feel.

It is unclear how these three processors compare in features, speed, and other facilities.

Lest anyone forget, the Apache Software Foundation also has a project that utilizes Tcl as a web scripting language: mod_dtcl (see also Apache Rivet for the successor to mod_dtcl).

nstcl implements the OpenACS templating system.

Sugar is a Lisp-like macro system for Tcl.


Koen Van Damme announced in a post to The comp.lang.tcl newsgroup that he has written a preprocessor based upon Tcl to get more power than provided by the C/C++ preprocessor. See http://users.pandora.be/koen.vandamme1/index.html .

Related pages in this wiki are Text Clipboard, Code Generation, Backquoting, castle.


Category Word and Text Processing