minor docs patch
Ryan Barrett <pyblosxom-6sb6M7qyT/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
hi again. as a followup to my ajax comments patch, i'm also submitting...a docs patch! c'mon, you know docs get you all hot and bothered. :P it's very minor; it just describes how to invoke template variables more explicitly. it took me a while to figure this out when i was learning pyblosxom, so i figured i'd try to help others avoid that pain. (then again, i'm probably just slow. :P) it's against svn. it's really small, so i'm including it inline here. *** docsrc/chapter_flavours.docbook (revision 929) --- docsrc/chapter_flavours.docbook (working copy) *************** *** 211,216 **** --- 211,223 ---- <para> 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, simply prefix the variable name with $. + For example, this would display your blog's title as a heading: + + <programlisting role="shell"><h2>$title</h2> + </programlisting> + To get a complete list of what variables are available in your blog, use the debug renderer by changing the renderer property in your <filename>config.py</filename> file to debug like this: -Ryan -- http://snarfed.org/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642