Thanks for your help. On Monday, July 29, 2013 9:54:20 PM UTC+8, Tae Sandoval Murgan wrote: > > Here is explained: http://webpy.org/cookbook/layout_template > > Basically, you can define variables in your templates: > > $var title: This is title. > > and then access them from your base template: > > $def with (content) > <html> > <head> > <title>$content.title</title> > </head> > <body> > $:content > </body> > </html> > > You shouldn't define another parameter in your base template: > > $def with (content, param) // Wrong > > You can access your params from the $content: > > <title>$content.title</title> > > :) >
-- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/webpy. For more options, visit https://groups.google.com/groups/opt_out.
