Re: [Templates] Adding delete method to HASH_OPS

[prev] [thread] [next] [Date index for 2004/10/18]

From: Perrin Harkins
Subject: Re: [Templates] Adding delete method to HASH_OPS
Date: 16:59 on 18 Oct 2004
On Mon, 2004-10-18 at 07:04, Jamie Echlin wrote:
> As above, I want a delete method for a hash key

I don't see anything wrong with your sample code, but this requirement
is probably a bad sign.  It means you are using your template as a place
to define behavior, rather than just presentation.  I generally consider
the stash read-only after I pass it to the template.

- Perrin




_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Adding delete method to HASH_OPS
Jamie Echlin 11:04 on 18 Oct 2004

Re: [Templates] Adding delete method to HASH_OPS
Perrin Harkins 16:59 on 18 Oct 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52