[Koha-devel] Trick and Tip for Template Toolkit
Fridolin SOMERS
fridolin.somers at biblibre.com
Fri Jun 27 09:05:52 CEST 2014
Hie developers,
I've been looking several monthes for a solution for Bug 11357.
The problem is : a hash key has the same name as a TT method (size).
I found the solution here :
http://stackoverflow.com/questions/2311303/how-can-i-handle-hash-keys-containing-illegal-identifier-characters-in-template
You have to use hash.item('size').
Is there a page in the wiki to add this ?
I did not found a general page for templates.
PS :
Here are the TT methods :
http://template-toolkit.org/docs/manual/VMethods.html#section_Hash_Virtual_Methods
PS2 : I love TT.
--
Fridolin SOMERS
Biblibre - Pôles support et système
fridolin.somers at biblibre.com
More information about the Koha-devel
mailing list