Overview | Packages to write XML or HTML with Tcl | xmlgen |
Overview — Packages to write XML or HTML with Tcl
The Tcl package xmlgen
allows to write Tcl code which
translates itself into XML.
Every tag is made into a markup command which takes attributes and the element's content as parameters and then prints the XML tagged content. Of course, the content again can contain markup commands.
On top of xmlgen
there is the package htmlgen
which
comes with all the typical HTML tags predefined as markup
commands. In addition, sub-namespaces of ::htmlgen
contain what you
could call markup macros
. A markup macro's syntax resembles the
syntax of a markup command but creates not just a pair of tags
with content but a whole structure of tags nested always in the
same way. Currently htmlgen::tab
and
htmlgen::sidenav
implement common navigation
structures for HTML sites.
Xmlgen, Htmlgen, Notebook Tabs, Navigation Bar
Overview | 1.4 | xmlgen |