Make has a templating system, e.g. to generate .html file automatically from .t fragments. My Make_HERE_CMS is based on Make and here Scripts.
Look at: http://kephra.de/blog/Make_here_CMS.html
oh well I should really document the xslt part for the left side picture gallery of my site.