I may have misunderstood the question, but If you need more variables
specific to a template, you can include them in the first line of your
template:

$def with (this=None, that=None, works=None)

and pass them via your render statement:
return render().templatename(additional,variables,gohere)

If you want global variables that your base template can use - (or any
other template, for that matter)  check out:
http://webpy.org/docs/0.3/templetor#builtins


sablona = web.template.render("/home/klerik/Workspace/blog/static/",
base="base", globals={'variablename':'some value'})


and $variablename will be accesible within your templates




On Wed, Jul 10, 2013 at 2:24 PM, Klerik <[email protected]> wrote:

> **
>
> 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 [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.
>
>
>

-- 
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.


Reply via email to