On Jun 9, 4:01 pm, "Anand Chitipothu" <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 9, 2008 at 12:55 PM, Bibby <[EMAIL PROTECTED]> wrote:
>
> > I used bzr to get the lastest version of webpy, and installed Cheetah.
> > But how can i make them work together?
>
> Try this:
>
> from web.contrib.template import render_cheetah
> render = render_cheetah("templates/")
>
> class hello:
>     def GET(self):
>         return render.hello(name="world")

Thanks Anand.

But it failed:

--------------8<--------------------
>>> from web.contrib.template import render_cheetah
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named contrib.template
--------------8<--------------------

I use the newest webpy version(webpy.dev).
--~--~---------~--~----~------------~-------~--~----~
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