Hi, I try to use functions inside my views. Helps keeping things more concise. I found that "functions inside function" doesn'twork.
Something like :
{{def icon(icon):}}
{{=IMG(_src=ICONSPATH+icon,_alt=icon)}}
{{return}}
{{def icon_link(icon,url):}}
{{=A(icon(icon),_href=url))}}
{{return}}
{{icon_link('myicon.png','someurl')}}
... raises : <type 'exceptions.TypeError'> 'str' object is not callable.
Is there really no way to achieve this ?
when I invoke
--

