HI Tzury
Thanks a lot, In couple of articles there is this method called web.render("
index.html") mentioned to render the existing html page. i was trying
initially that instead of templates. So now has it been removed, if so whts
the simple way to render the existing html page without using templates.
Thankk you
Ranganath.S
On 9/25/07, Tzury <[EMAIL PROTECTED]> wrote:
>
>
> > web.render('index.html') it gives error as render not found in
> > module. I have downloaded webpy0.22 and working on python2.5 . Is
> > that method obsolete or removed ? plz let me know at the earliest
>
> At first you should define your render object initialized with
> templates directory
>
> e.g.
> render = web.template.render('templates/')
>
> Once you did so, you can call render.<template_file>
> e.g.
> for 'index.html' you call render.index()
>
> Moreover, if you have menu.html, header.html, footer.html which you
> want them to appear at all pages you may do the following:
>
> render.index(render.menu(), render.header())
> and your index may look like:
> $def with (menu, header, form, ....)
> <html>
> < blah> </blah>
> <body>
> $:header
> $:menu
> <form>
> $:form.render()
> </form>
> </body>
>
>
> >
>
--
I blog at http://iparams.com/blog
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---