wiki:MacroChainMacro

Chain multiple macros and processors

Description

This macro allows you to chain multiple macros (including WikiProcessors) together, similar to Unix command line pipes. That means it allows you to feed the output from one macro as input to the next.

The following mimicks the MimeInclude macro:

[[MacroChain(Include(http://www.example.com/), text/html)]]

This uses the CsvMacro to display a csv file from the repository as a table:

[[MacroChain(Include(trunk/foo/bar.csv), CsvMacro)]]

The following uses the XsltMacro and GraphvizPlugin to create a graph of some xml data:

[[MacroChain(Xslt(graph.xslt, doc.xml), graphviz.dot)]]

Bugs/Feature Requests

Existing bugs and feature requests for MacroChainMacro are here.

If you have any issues, create a new ticket.

defect

1 / 1

Download

Download the zipped source from here.

Source

You can check out MacroChainMacro from here using Subversion, or browse the source with Trac.

Installation

This macro must be installed as a plugin. To do so, change the directory to macrochainmacro/0.11 (if running Trac 0.11 or 0.12) or macrochainmacro/0.9 (if running Trac 0.9 or 0.10), run python setup.py bdist_egg and copy the resulting dist/macrochain-0.X-pyY.Z.egg to your plugins directory.

Recent Changes

7903 by roadrunner on 2010-04-30 15:37:49
Port macro to trac 0.11 .

Closes #3028.

1093 by roadrunner on 2006-08-07 06:29:58
MacroChainMacro:

initial import

1092 by roadrunner on 2006-08-07 06:27:09
New hack MacroChainMacro, created by roadrunner
(more)

Author/Contributors

Author: roadrunner
Maintainer: roadrunner
Contributors:

Last modified 42 hours ago Last modified on Aug 28, 2016, 12:53:04 PM