Is possible add more arguments to base template, I have only page argument.
In code.py I have:
sablona = web.template.render("/home/klerik/Workspace/blog/static/", base="base")
In base.html I have on top:
$def with (page)
I need more arguments like on other templates, is it possible? If yes, give me some easy sample.
Thanks
Klerik
--
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 webpy+un...@googlegroups.com.
To post to this group, send email to we...@googlegroups.com.
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.
My English is a little worse, so I was wrong about the issue expressed, but even so, you helped me, and I can solve using global variables (somehow I did not realize it). Anyway, my question was whether to base the template I add another variable, as it does with other templates.
Eg. the template index to send the class Index quite a lot:
return sablona.index (seznam_zapisku, ziskej_kategorie, ziskej_datum, pages, cislo_strany)
and then in the template index have that kind of writing:
$ def with (seznam_zapisku, ziskej_kategorie, ziskej_datum, pages, cislo_strany)
It goes something like this done even with the base template?
This time it translated by google, so hopefully it will be more understanding :).
Klerik.
--
Klerik