On Mon, Jun 9, 2008 at 6:40 PM, Bibby <[EMAIL PROTECTED]> wrote:
>
>
>
> On Jun 9, 7:25 pm, "Anand Chitipothu" <[EMAIL PROTECTED]> wrote:
>> > So how should i use Cheetah template engine in webpy 0.3?
>>
>> use web.contrib.template.render_cheetah.
>
> Something wrong:
>
> ----8<--------------
>>>> import web
>>>> render = web.contrib.template.render_cheetah('templates')
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
> AttributeError: 'module' object has no attribute 'contrib'

try:

from web.contrib.template import render_cheetah
render = render_cheetah('templates/')

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