]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Template_variables.mdwn
ikiwiki (3.20140916) unstable; urgency=low
[ikiwiki.git] / doc / forum / Template_variables.mdwn
1 Hi,
2
3 I am very confused with the template variables. I cannot find any documentation of which ones are available, where are they set, etc.
4
5 I see that in the default templates, there are things like this (rssitem.tmpl): 
6
7     <TMPL_IF AUTHOR>
8         <title><TMPL_VAR AUTHOR ESCAPE=HTML>: <TMPL_VAR TITLE></title>
9         <dcterms:creator><TMPL_VAR AUTHOR ESCAPE=HTML></dcterms:creator>
10     <TMPL_ELSE>
11         <title><TMPL_VAR TITLE></title>
12     </TMPL_IF>
13
14 But I don't get this in my RSS, and I don't know how to add those variables, except for mentions of some plugins that are not yet merged.
15
16 I also see that the 'author' data is one of the fields that can be set with the meta directive, but I understand that meta is processed after the templates, so it cannot be the source; right?
17
18 Any help appreciated!
19
20 PS: what I am tring to do now is to add a proper author field to my feeds, but I also want to understand how to use the templating system.