Merge pull request #512 from mindeavor/patch-2

Add basic documentation for <macro-body/>
This commit is contained in:
Patrick Steele-Idem 2017-01-05 18:59:26 -07:00 committed by GitHub
commit a19f37f2d0

View File

@ -720,6 +720,25 @@ The above macro can then be invoked as part of any expression. Alternatively, th
</p>
```
### macro-body
You can also place a <macro-body> tag within your macro to accept wrapped macro body content.
```xml
<macro step(number)>
<div class="step">
<span class="step-number">Step ${number}:</span>
<macro-body/>
</div>
</macro>
<step(1)>First do this</step>
<step(2)>Then do this</step>
<step(3)>
Lastly, do this <em>slightly</em> complicated thing...
</step>
```
# Structure Manipulation