On Dec 22, 2006, at 10:00 PM, Adeola Awoyemi wrote:
> Does code in the TT [% PERL %] blocks only run once
like in the
> Mason Directives?
It's like the Mason <%perl> and <%init>
directives, yes, but not like
<%once>. The <%once> directives are probably
moot for Bricolage
templates, anyways, because a new interpreter is created
every time
you publish a story, so they still execute every time you
publish a
story. Of course, if your story has multiple pages,
<%once> blocks
evaluate only once, while %perl and %init blocks evaluate
for every
page.
Best,
David
|