If you use the Concordion's Example Command this will append all cards added to the storyboard while the example is being executed to the example element.
Behaviour:
setAddCardsToExample(true)
method on the extension<div class="testinput" concordion:example="example1"> <span concordion:assertTrue="addCard(#TEXT)">Card 1</span> </div>
When this snippet is run with this fixture, this results in a new section being added to the Example and the section is collapsed.
<div class="testinput" concordion:example="example1"> <span concordion:assertTrue="addFailureCard(#TEXT)">Failure</span> </div>
When this snippet is run with this fixture, this results in a new section being added to the Example and the section is collapsed and the section title getting a failure status.