>       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 vari�
>       able accessed which the Template Toolkit will silently ignore
>(unless the DEBUG option is enabled).
>
>           my $vars = {
>               message => 'Hello World!',
>               _secret => "On the Internet, no-one knows you're a dog",
>               thing   => {
>                    public  => 123,
>                   _private => 456,
>                  '.hidden' => 789,
>               },
>           };
>
>       template:
>
>           [% message %]               # outputs "Hello World!"
>           [% _secret %]               # no output
>           [% thing.public %]          # outputs "123"
>           [% thing._private %]        # no output
>           [% thing..hidden %]         # ERROR: unexpected token (..)

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/


Reply via email to