|Version 4 (modified by roadrunner, 10 years ago) (diff)|
Chain Multiple Macros/Processors
This macro allows you to chain multiple macros (including WikiProcessors) together (think unix command line pipes). I.e. it allows you to feed the output from one macro as input to the next.
If you have any issues, create a new ticket.
Download the zipped source from [download:macrochainmacro here].
This macro must be installed as a plugin. To do so, change the directory to macrochainmacro/0.9, run python setup.py bdist_egg, and copy the resulting dist/macrochain-0.1-pyX.Y.egg to your plugins directory.
The following mimicks the MimeInclude macro:
[[MacroChain(Include(http://www.example.com/, None), text/html)]]
This uses the CsvMacro to display a csv file from the repository as a table:
[[MacroChain(Include(trunk/foo/bar.csv, None), CsvMacro)]]
[[MacroChain(Xslt(graph.xslt, doc.xml), graphviz.dot)]]