Contents
JTemplate Parser
Description
Using Jinja2 templates in MoinMoin. Working version but not fully tested yet (no error handling).
Download & Release Notes
Download |
Release Version |
Moin Version |
Release Notes |
1.0 |
1.9 |
|
Installation
For general installation instructions, see ParserMarket/InstallingParsers.
Jinja2 must be obviously installed.
In your wikiconfig.py add a new configuration variable pointing to the template directory.
jinja2_templates = '/path/to/your/jinja2/templates'
Usage
To use this parser, simply put #!jtemplate and the name of the template to be used after the beginning of the code block. Inside the code block you define the required key/value-pairs for the template.
Example
{{{#!jtemplate test.html Value1: Hello Value2: World }}}
test.html could look like this:
<p>{{Value1}} {{Value2}}</p>
The output in your wiki should be:
<p>Hello World</p>
Copyright
This version of the parser is copyrighted by MarcWoog.
License
This parser is released under the terms of the GNU GPL.