on 7/31/01 1:42 PM, Gabriel Ambuehl at [EMAIL PROTECTED] spake:
> I'd definitely love it!
> 
> I suppose one could go the easy way and just use some Perl script to
> preprocess the pages before you use them the first time, then the
> only
> thing needed to do would be to remove header/footer from the default
> templates (as most probably will use those where ever possible, lazy
> as we are ;-) and put something like #header# and #footer# in there.
> Preprocessed pages would probably also result in faster processing of
> the templates.
> 
> I could supply the Perl script/mess with the templates, if that is of
> any help.

I don't like the idea of requiring an outside tool to process templates.  My
idea was this:

send_template("main_menu.html") would first parse html/header.html, then
html/main_menu.html, then html/footer.html.  All the hooks (##D, etc) would
work in the header and footer files as well.  Then, you could move whatever
you wanted into these file to accommodate your needs.  Seems like the
simplest way.  And if you don't want to use them, leave them empty.

Regards,

Bill Shupp

Reply via email to