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-contai... 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_M... PS2 : I love TT. -- Fridolin SOMERS Biblibre - Pôles support et système fridolin.somers@biblibre.com
Is there a page in the wiki to add this ? I did not found a general page for templates.
There are existing coding guidelines which talk about TT usage, so I think you could add something there: http://wiki.koha-community.org/wiki/Coding_Guidelines#HTML_Templates -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
Done : http://wiki.koha-community.org/wiki/Coding_Guidelines#HTML6:_a_hash_key_with... Le 27/06/2014 14:41, Owen Leonard a écrit :
Is there a page in the wiki to add this ? I did not found a general page for templates.
There are existing coding guidelines which talk about TT usage, so I think you could add something there:
http://wiki.koha-community.org/wiki/Coding_Guidelines#HTML_Templates
-- Owen
-- Fridolin SOMERS Biblibre - Pôles support et système fridolin.somers@biblibre.com
participants (2)
-
Fridolin SOMERS -
Owen Leonard