Try this :
from Cheetah.Template import Template
print Template(file="templates/file.tmpl", searchList=[locals()])
that should do the trick.
hth,
krishna
On Mar 13, 5:57 am, mobil <[EMAIL PROTECTED]> wrote:
> code.py
> web.render = web.contrib.template.render_cheetah('templates')
> this doesnt work
>
> How do we use cheetah
> as web.render as we used in .2
>
> or how to use
>
> return web.render('file.html',asTemplate=True)
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---