On Wed, Aug 01, 2001 at 11:07:46AM -0700, Tony Payne wrote:
> [% BLOCK %] (also at template level)
> [% META cache-ttl=3600s cache-loc=mem cache-keys=[...] %]
>
> [% END %]
There will be a general syntax for doing this kind of stuff.
[% BLOCK name attributes %] ... [% END %]
[% BLOCK attributes %] ... [% END %]
All configuration options (attributes) specified with the BLOCK are
lexically scoped and can affect runtime and parse-time options.
e.g.
[% BLOCK
post_chomp = 0
cache_ttl = 3600
%]
Hello World!
[% END %]
I'm thinking that the META tag will be replaced by TEMPLATE because
that's what it gets named to when you say 'template.title' for example.
A [% TEMPLATE xxxxx %] directive can be used to define meta attribs
just like BLOCK, except that they act on the current template document
rather than the enclosed lexical block.
[% TEMPLATE
title = 'A simple example'
%]
blah blah
[% TEMPLATE post_chomp = 0 %]
blah blah
[% TEMPLATE tags = star %]
[* INCLUDE foobar *]
Or something like that...
A