Skip to content

Commit

Permalink
Fix manual. Added info about accessing values with comples keys from …
Browse files Browse the repository at this point in the history
…hash
  • Loading branch information
1 parent 6c92854 commit 849569e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Template/Manual/Variables.pod
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@ L<Variable Interpolation>).
[% pagename = 'next' %]
[% page.$pagename %] # same as [% page.next %]
You can also access hash entry using C<item()> method. This might be helpful
if you have complex key name.
<pre>
[% files.item('example.txt').content %]
</pre>
See L<Template::Manual::VMethods|Template::Manual::VMethods/"item"> for more info.
When you assign to a variable that contains multiple namespace
elements (i.e. it has one or more 'C<.>' characters in the name),
any hashes required to represent intermediate namespaces will be
Expand Down

0 comments on commit 849569e

Please sign in to comment.