Textile & Is WebMake Alive? (Re: [WM] WindowsXP/Ofis2000 Egitim

Bryce Harrington bryce.osdl.org
Sat Aug 16 13:09:07 IST 2003


On Sat, 16 Aug 2003, Justin Mason wrote:
> Another thing I was hoping to do, if I ever got the tuits, would be to replace the
> current templating system in WM with one based on Template Toolkit; TTK is a better
> system in terms of scriptable stuff like if/while, and it's more widely used, so hopefully
> less buggy ;).  However the WM templating has some very handy features like
> dependency and metadata support, multiple templates in one file, distinction
> between content and templates, so some merging would have to be done.   So this
> is definitely one thing on the "big jobs if I get the chance" list.
>
> All ideas/running code are welcome!

I've got an EtText/Template-Toolkit build tool worked up, called 'tgen',
which we use for managing the OSDL website.  It lacks dependency
checking, but it runs quick enough for us that it hasn't been an issue
yet.  We've found a lot of synergy using TT2 and EtText together for
being able to build static sites very quickly and flexibly.  This
system's been put to the test with a couple Slashdottings within as many
weeks, with very good results.

http://tgen.sourceforge.net

It works by converting a src tree into a matching tree of TT2-syntax
files, which can then be run through ttree (from Template-Toolkit) to
generate the final website.

In addition to EtText, I've implemented support for Text::WikiFormat,
man, POD, and raw perl (via perl2html).  It's very straightforward to
add new kinds of filters to tgen; they just need to take a filename as
an arg and emit HTML or TT2 syntax to their stdout.

Currently at the top of my todo list is a web-based editor called
vwebedit that interfaces to version control systems like CVS and a
page-release scheduler called cvs_at (for those pesky 5am press releases
about hiring some major kernel developer or other) that allows for
creating branches of the CVS-based website for automatic merging,
building and release at a scheduled time.  I'm about 75% done with each
of these and hope to finish them up soon after I get back from vacation.

Bryce







More information about the Webmake-talk mailing list