don't clear BLKSTACK between templates. this shouldn't cause any problems assuming every template leave()s the context correctly. We need it because we currently treat each inclusion as effectively a totally new template, but we want to do that without losing [%BLOCK%]s.

git-svn-id: svn://10.0.0.236/trunk@153228 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ian%hixie.ch 2004-02-25 19:21:36 +00:00
parent 341a4e4364
commit 4534b58984

View File

@ -58,7 +58,12 @@ sub init {
local $Template::Config::STASH = 'Template::Stash::Context'; # Don't use Template::Stash::XS as we can't currently get a hash back out of it
$self->{template} = Template->new({
'CONTEXT' => PLIF::Service::TemplateToolkit::Context->new($app),
'AUTO_RESET' => 0, # don't clear BLKSTACK between templates [1]
});
# [1] this shouldn't cause any problems assuming every template
# leave()s the context correctly. We need it because we currently
# treat each inclusion as effectively a totally new template, but
# we want to do that without losing [%BLOCK%]s.
}
sub expand {