directory tree:
templates/
               layout/
                         main.html
               mymodule/
                          helloworld.html

python:
def GET(self):
  renderObj = web.template.render('templates', base='layout/main')
  return renderObj.mymodule.helloworld()

result:
'function' object has no attribute helloworld

resolution:
remove base key works fine.

On Apr 29, 11:47 am, "Aaron Swartz" <[EMAIL PROTECTED]> wrote:
> >  hey aaron what do you think of adding relative path support for base
> >  in template?
>
> What do you mean?
--~--~---------~--~----~------------~-------~--~----~
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