On 10/12/05, Vivek Khera <[email protected]> wrote:
> On Oct 12, 2005, at 11:21 AM, Will Hawes wrote:
>
> > It's understandable behaviour given the usual Perl idiom of using a
> > leading underscore to indicate a private method. However, I've only
> > been able to find sketchy info about this in the docs.
> >
> >
>
> somewhere, they are documented as being uncallable from templates.
> can't find it now, conveniently...

It is not very clearly documented as far as I remember.  There is this
section on 'Hash Array References' in Template::Manual::Variables that
has a bit of a blurb:

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

But I couldn't find anything mentioning that methods are treated the same way.

Cheers,

Cees

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

Reply via email to