Using this code (in real world in two different classes) I obtain this
error:
TypeError: __template__() talkes no argument 1 given
------------
import web
form1 = """$def with (o)
<HTML>
<BODY>
$o.var1
</BODY>
</HTML>
"""
form2 = """$def with (o)
<DIV style="{border: solid 1px red;}">
$o.var2
</DIV>
"""
o1 = web.Storage()
o2 = web.Storage(var2='bbbbbbb')
t2 = web.template.Template(form2)
o1['var1'] = t2(o2)
t1 = web.template.Template(form1)
print t1(o1)
-----------
Is it possible to use more than one call to template?
Thanks for your suggestions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---