actually django handles this with base request context. does webpy have any plan on supporting something like this?
On 21 Ocak, 18:45, Pablo Antonio <[email protected]> wrote: > On Thu, Jan 21, 2010 at 1:41 PM, Ferran Fontcuberta <[email protected]>wrote: > > > It is possible to pass parameters to base layout, like the title or > > something like this? > > You can set properties in the template that you use as content. For example, > take > a look at this layout > template:http://github.com/crazy2k/pfweb/blob/master/templates/layout.html > > The title is taken from the template which is passed as parameter. An > example > of a "content" template is > this:http://github.com/crazy2k/pfweb/blob/master/templates/index.html > > And here's how you make your rendering function use layout.html as a base > template:http://github.com/crazy2k/pfweb/blob/master/pages.py > > Hope it helps, > > -- > Pablo A.http://www.pablo-a.com.ar/ -- 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.
