On Sat, Apr 19, 2008 at 10:10 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>  HI
>  web.render('xx.html') automatically looks for xx.html in 'templates/'
>  directory.

web.render is there for providing backward-compatibility for rendering
cheetah templates.

Here is the way to use web.py templates:

render = web.template.render('templates/') # pass your template root as argument
print render.x() # renders x.html

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to