On Thu, Jun 5, 2008 at 8:20 PM, flywood <[EMAIL PROTECTED]> wrote: > > Hi, Anand > Thanks your help. it works. but it seem that the "lstrips" should be > "rstrips". :)
Sorry, it should be rstrips. > > further more, I also found that below code can work as well, but it > was very strange that when I put the render result to the other > template, it will always stay on the top of the output html page. > > here is the code: > > maincontent = web.render(selected_file) > print render.layout(header, sidemenu, maincontent) It is unlikely that the problem is with layout template. It looks like maincontent is printed somewhere. Can you comment out `print render.layout(....)` and see what happens? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
