Sorry, but using this code with webpy 0.3.....:
htmlcode2 = """
$def with (o)
<HTML>
<HEAD>
</HEAD>
<BODY>
<CENTER>
It works!
</CENTER>
</BODY>
</HTML>
"""
.....
class Index:
def GET(self):
......
t = web.template.Template(htmlcode2)
return t()
....gives me this error:
<type 'exceptions.SyntaxError'> at /
invalid syntax Template traceback: File '<template>', line 3 None
(<template>, line 3)
.........
What is my error?
Thanks
On Nov 2, 10:42 am, "Anand Chitipothu" <[EMAIL PROTECTED]> wrote:
> On Sun, Nov 2, 2008 at 1:50 PM, leone <[EMAIL PROTECTED]> wrote:
>
> > Yes, this is ok only with pure html. But I need to pass some values to
> > html code ($def with (parms) ... etc.) ! This is my trouble.
> > Is it possible?
>
> yes.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---