]> sipb.mit.edu Git - ikiwiki.git/blob - doc/templates.mdwn
web commit from 66.118.98.137:
[ikiwiki.git] / doc / templates.mdwn
1 ikiwiki uses the HTML::Template module as its template engine. This supports things like conditionals and loops in templates and is pretty easy to learn.
2
3 It ships with some basic templates which can be customised:
4
5 * `templates/page.tmpl` - Used for displaying all regular wiki pages.
6 * `templates/recentchanges.tmpl` - Used for the RecentChanges page.
7 * `templates/edit.tmpl' - Edit page.
8 * `templates/create.tmpl' - Creating a new page.
9 * `templates/signin.tmpl` - Used for the SignIn form and all assciated forms, if it exists.
10    
11   Note that the SignIn form is implemented using CGI::FormBuilder, which interfaces to HTML::Template, so not all of it can be customised with templates, although most of it can, by creating this template. Without the template, CGI::FormBuilder creates the page by itself.
12
13 I aim to keep almost all html out of ikiwiki and in the templates.