Brehaut.net provides a simple macro suite, these are processed to do somewhat sophisticated special case processing such as ratings.
Typically a macro needs arguments:
[% macroname: arguments %]
There are a few examples such as the macros macro that takes no arguments:
[% macroname %]
Todo:
- Key-Value macros – schmancier parsing of value definitions
- see_also macro – creates a see also set of links like on about
- write better documentation
- better error handling
Python Macros
macros
A macro to list all macros.
- expects no arguments
- returns a list of all the macros in the system
sections
Displays a table of sections in trendy little boxes.
Arguments are a set of list of sections comma seperated and surrounded
in ‘[‘ and ‘]’. You may have as many of these lists as you like. Lists are
space seperated.
ratings
The rating macro will create an average of a set of ratings in the form user:++++, user2:++
