Andy Wardley <[EMAIL PROTECTED]> writes: > On Fri, Jun 29, 2001 at 02:13:04PM +0200, Jonas Liljegren wrote: > > Yes. I tried that first. But then I wonderd what would happen if I had > > multipple USE in diffrent blocks. > > > > Would one filter definition just override previous filter definitions? > > > > Would I get multipple filters accumulating in memory? > > They get stored back into the Template::Filters provider > module via the store() method which the context define_method() > calls. > > Filters are effectively "global" and new definitions > overwrite old.
The global nature of filters is not an issue while using the filter via the method. (The filter is redefined from the object at every invocation.) But I could change if that is not the prefered way. -- / Jonas - http://jonas.liljegren.org/myself/en/index.html
