Re: Gaps in manual
Ryan Barrett <pyblosxom-6sb6M7qyT/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
> On 6/8/07, Chris G <[email protected]> wrote: > >> There doesn't appear to be anywhere that tells how to use >> variables in templates, again one can find out by looking at >> examples but it would be good to have it spelt out. true. a section on this was added after 1.3.1, so it's not in the 1.3.1 manual on the web site. here's the section that was added: Template Variables ================== This is the list of variables that are available to your templates. Additionally, plugins that you are using will add additional variables. To use a variable in a template, prefix the variable name with a $. For example, this would expand to the blog's title as a h2:: <h2>$title</h2> To get a complete list of what variables are available in your blog, use the debug renderer by changing the renderer property in your ``config.py`` file to debug like this:: py["renderer"] = "debug" That will tell you all kinds of stuff about the data structures involved in the request. Don't forget to change it back when you're done! it was added to this section: http://pyblosxom.sourceforge.net/1.3.1/manual/x315.html -Ryan -- http://snarfed.org/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/