hi,

Now i know where is the problem but I don't know how to resolve it ? any
help would be appricated !
Explanation :

I had one module(class) that takes care of  creating the template, setting
some vars and defaults and more importantly altering the
$Template::Stash::SCALAR_OPS i.e. :

$Template::Stash::SCALAR_OPS =

  'sprintf' => \&Page::Utils::sprintfTT,
  'normalizeDate' => \&Utils::normalizeDate,
};

OK.... if I do it this way and use somewhere in my templates var.replace(),
what I see in the log is that replace() is not called every time (i put
debugging code in Template::Stash to look at this )..
But if I remove the Stash-altering code everithing goes fine and replace()
is fired every time...

Any ideas how to solve this !? I want to have possibility to alter
Stash::SCALAR_OPS..

One more thing why the same functions are defined twice in Template::Stash
and Template::Stash::Context ?
Thanx alot in advence
=====
iVAN
[EMAIL PROTECTED]
=====




Reply via email to