use Template;
use Template::Stash;
my $template = Template->new({  STASH => Template::Stash->new(), ... }

this lets you use the non xs stash even if you have the xs stash installed as the default.

Chris Ochs wrote:

I am using the xs version, I remember that from the install, I wasn't sure
what it was actually but since it was a default I let it be.

Is there a workaround?

Chris
----- Original Message ----- From: "Stephen Howard" <[EMAIL PROTECTED]>
To: "Chris Ochs" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, January 27, 2004 8:56 PM
Subject: Re: [Templates] virtual methods not work on tied hashes?





are you using the xs version of Template::Stash or the pure perl
version?  The xs version is broken as far as dealing with tied hashes,
unfortunately.

Chris Ochs wrote:



I have a couple of hashes that are tied hashes to apache::session


sessions.


I can access and manipulate them directly via [% hash.key %] or [%


hash.key


= 'myvalue' %], but the following from the documentation doesn't work, it
doesnt' see any of the elements:

[% FOREACH key = hash.keys %]
     [% key %] => [% hash.$key %]
  [% END %]


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates









_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates





_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to