I was assigning a render object to a template global and accessing it
within the template as the following:

# python 0.3 webpy dev branch
render = web.template.render('foo/')
web.template.Template.globals['render'] = render

# html
$:render._somefile()

# directory tree
foo->
       _somefile.html


On Apr 30, 12:33 pm, Justin Davis <[EMAIL PROTECTED]> wrote:
> Hmmm, works for me during a quick test.
>
> my test went like this:
>
> render = web.template.render('foo/')
> render._bar()
>
> With the same directory structure that worked for me.  How did you
> define your render variable, and what's in your template?
>
> On Apr 30, 1:33 pm, docyes <[EMAIL PROTECTED]> wrote:
>
> > directory:
> > foo->
> >         _bar.html
>
> > python:
> > render._bar()
>
> > result:
> > barf
--~--~---------~--~----~------------~-------~--~----~
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