Skip to content

Commit

Permalink
Merge pull request #305 from nataraj-hates-MS-for-stealing-github/master
Browse files Browse the repository at this point in the history
Fix manual. Added info about accessing values with comples keys from hash
  • Loading branch information
atoomic authored Apr 28, 2024
2 parents 1ce187b + 849569e commit bff44ff
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 bff44ff

Please sign in to comment.