Perfect. I just ran across this same solution.

Thanks for the help though!!

On Aug 16, 4:10 am, andrei <[email protected]> wrote:
> Maybe you should try this solution:
>
> http://groups.google.com/group/webpy/msg/ea6da02dfb9eedc4?
>
> On Aug 16, 1:23 am, Milo Gertjejansen <[email protected]> wrote:
>
>
>
>
>
>
>
> > So I figured out that combining everything doesn't work as well as I
> > thought.. As I need to call each item.html template many times for the
> > code to work properly.
>
> > Anybody have any suggestions on what to do?
>
> > On Aug 15, 12:53 am, Anand Chitipothu <[email protected]> wrote:
>
> > > 2011/8/15 Milo Gertjejansen <[email protected]>:
>
> > > > Hello, I have looked into the base arg for in render and in certain
> > > > instances I am sure it works well. But I have created a comment system
> > > > based heavily off of the skeloton code (http://webpy.org/skeleton/
> > > > 0.3).
>
> > > > With this, each time a new template gets called (so for each comment),
> > > > it runs through the base template.
>
> > > > Obviously this is a problem because then they layout would just look
> > > > crazy!
>
> > > > My first solution would be to combine (from the page above) item into
> > > > listing, and listing into base.html so then only a single template
> > > > would be called.
>
> > > > Let me know if there is a way to keep all the separate templates as
> > > > they are, or at least another solution (mostly for ideas at this
> > > > point).
>
> > > Are you worried about having to call template foo as
> > > render.layout(render.foo()) ?

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