Curtis Poe sent the following bits through the ether:

> A few days ago, I was asking about how to automatically include the template
> name in start and end tags at the beginning and end of each INCLUDEd
> template (original email is below).  Since this is specifically for a Web

Yup, that seems to work just fine and there shouldn't be any side
effects. I was wondering about this recently as the templates here
have gotten quite complicated. (I've done it for PROCESSed templates as
well). For example, at the top of the front page atm we have:

<!-- PROCESS START: config/main -->
<!-- PROCESS END: config/main -->
<!-- PROCESS START: layout/wrapper -->
<!-- INCLUDE START: layout/main -->
<!-- INCLUDE START: layout/html -->

Of course, what I'd really want is for Template::Documents to contain
more meta information, such as which template exactly it was, but this
is a great help nevertheless.

Now if only the code wasn't such a hack... Leon
-- 
Leon Brocard.............................http://www.astray.com/
Nanoware...............................http://www.nanoware.org/

... Real men write self-modifying code


Reply via email to