Eric Siegerman wrote:
>  5. Turn the static pages into templates, as in (2), but then
>     preprocess them back into static HTML with ttree 

This is what I do pretty much all the time.  Whenever I have static pages,
I build them using templates.  Whenever I have dynamic pages, I process
them on the fly.  In both cases, they get to use the same menus, headers,
footers, etc.  

Although it's marginally annoying to have to pre-process all your static
pages, it's a one-line command (ttree) and doesn't take very long.  It's 
no worse than having to compile a C program before you can run it.  

You only need rebuild all static pages when you change a shared component 
like a menu.  And with the new --depend and --depend_file ttree options, 
you can make it a lot smarter about only rebuilding the pages that really 
need rebuilding.

A


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to