Re: [Templates] Hash Keys With Leading Dots

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

From: Andy Wardley
Subject: Re: [Templates] Hash Keys With Leading Dots
Date: 08:50 on 10 Nov 2004
Dave Cash wrote:
> I ran across what looks like a bug to me, though I suppose it could
> be a feature.  :)

It's a feature, although I'm not convinced it's a particularly useful 
feature.  (I'm open to suggestions for de-featuring it in TT3, or at least
making it configurable).

From Template::Manual::Variables:

  Any key in a hash which starts with a '_' or '.' character will be con-
  sidered private and cannot be evaluated or updated from within a tem-
  plate.  The undefined value will be returned for any such variable
  accessed which the Template Toolkit will silently ignore (unless the
  DEBUG option is enabled).

HTH
A


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

[Templates] Hash Keys With Leading Dots
Dave Cash 22:38 on 09 Nov 2004

Re: [Templates] Hash Keys With Leading Dots
Dylan Hardison 05:15 on 10 Nov 2004

Re: [Templates] Hash Keys With Leading Dots
Andy Wardley 08:50 on 10 Nov 2004

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