7 | | This macro allows you to chain multiple macros (including WikiProcessors) together (think Unix command line pipes). That means it allows you to feed the output from one macro as input to the next. |
| 7 | 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. |
| 8 | |
| 9 | The following mimicks the [t:MacroBazaar#MimeInclude MimeInclude] macro: |
| 10 | {{{ |
| 11 | [[MacroChain(Include(http://www.example.com/), text/html)]] |
| 12 | }}} |
| 13 | |
| 14 | This uses the CsvMacro to display a csv file from the repository as a table: |
| 15 | {{{ |
| 16 | [[MacroChain(Include(trunk/foo/bar.csv), CsvMacro)]] |
| 17 | }}} |
| 18 | |
| 19 | The following uses the XsltMacro and GraphvizPlugin to create a graph of some xml data: |
| 20 | {{{ |
| 21 | [[MacroChain(Xslt(graph.xslt, doc.xml), graphviz.dot)]] |
| 22 | }}} |
32 | | == Example |
33 | | |
34 | | The following mimicks the [t:MacroBazaar#MimeInclude MimeInclude] macro: |
35 | | {{{ |
36 | | [[MacroChain(Include(http://www.example.com/), text/html)]] |
37 | | }}} |
38 | | |
39 | | This uses the CsvMacro to display a csv file from the repository as a table: |
40 | | {{{ |
41 | | [[MacroChain(Include(trunk/foo/bar.csv), CsvMacro)]] |
42 | | }}} |
43 | | |
44 | | The following uses the XsltMacro and GraphvizPlugin to create a graph of some xml data: |
45 | | {{{ |
46 | | [[MacroChain(Xslt(graph.xslt, doc.xml), graphviz.dot)]] |
47 | | }}} |
48 | | |