Brett Sanger <[EMAIL PROTECTED]> writes:

> One critical issue that HTML::Template is lagging in is support for our
> current templating mindset.  Our content templates look something like
> this:  (<!! and !!> indicate Text::Template code)

You can make <!! !!> the tag style of Tempalte Toolkit by a simple
configuration option.


> <!! Load($Header) !!>
> <!! $BeginText !!>
> This is content here with a
> <a href=<!!Lookup("Page Link")!!>>Link</a>
> <!! $EndText !!>
> <!! Load($Footer) !!>

The same page, TT2 style:

<!! Load(Header) !!>
<!! BeginText !!>
This is content here with a
<a href=<!!Lookup("Page Link")!!>>Link</a>
<!! EndText !!>
<!! Load(Footer) !!>

The only diffrence here is that '$' thing.  You could almost switch to
TT2 only by a simple filtering of the existing templates.

There is actually a configuration option for accepting those dollar
signs.  And with that configuration option set, you wouldn't have to
change anything in existing templates. :-)
With TT1, you could even keep the dollar signs.

-- 
/ Jonas  -  http://jonas.liljegren.org/myself/en/index.html


Reply via email to