On Mon, May 17, 2010 at 5:36 AM, Chakkit Ngamsom <[email protected]> wrote:
> Hi All,
>
> I’m not sure if Filter only support STRING or including HASH, HASHREF, etc.

>From a previous discussion I think it was discovered that TT will
always stringify the input to a filter.

An alternative would be to implement "myfilter" as a virtual method and use:

[% myhashref.myfilter %]

Have a look at $Template::Stash::SCALAR_OPS,
$Template::Stash::LIST_OPS and $Template::Stash::HASH_OPS for defining
your own virtual methods.

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to