ifind...@gmail.com
unread,Apr 27, 2018, 12:35:52 PM4/27/18You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I have uploaded a pure TCL package to Sourceforge that some people may find useful for making CGI and e-mail scripts. The package implements a simple set of markups for HTML templates that can be used to generate HTML pages within, for example,
CGI scripts. The markups implement a hierarchical scheme of parameters that are substituted for specified values when a template is expanded. In addition, markups implement the basic if/else, repeat, duplicate, foreach paradigms for conditional and repetitive expansions, include for nesting templates, and some utility markups like comment and debugging helpers.
The template expansions happen inside the TCL interp, so you can embed anything that TCL can do in the templates, although if you go significantly that way you may just as well write everything in TCL. The main use I make of this package is the ability to create reusable template libraries which can be applied to different web applications.
There is a nice little test program and example scripts in the package distribution.
Of course, there are several more elaborate javascript packages that can do similar stuff, but this package is all TCL and can be learned in a short time.
The package can be found in the webpage directory of the Tclfltk project on Sourceforge.