mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-09 03:19:56 +00:00
29 lines
782 B
Plaintext
29 lines
782 B
Plaintext
|
title: Transclude/Parameterised/SlotFillParseTreeNodes
|
||
|
description: Parameterised transclusion using the $slotFillParseTreeNodes attribute
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Output
|
||
|
|
||
|
\whitespace trim
|
||
|
|
||
|
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
||
|
<$fill $name="one">This is first</$fill>
|
||
|
<$fill $name="two">But this is second</$fill>
|
||
|
</$transclude>
|
||
|
|
||
|
<$transclude $tiddler='TiddlerOne'>
|
||
|
<$fill $name="one">This is first
|
||
|
<$fill $name="two">But this is second</$fill></$fill>
|
||
|
</$transclude>
|
||
|
+
|
||
|
title: TiddlerOne
|
||
|
|
||
|
\whitespace trim
|
||
|
<$parameters $slotFillParseTreeNodes="@slotFillParseTreeNodes">
|
||
|
<$text text={{{ [<@slotFillParseTreeNodes>jsonindexes[]join[,]] }}}/>
|
||
|
</$parameters>
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>one,ts-raw,two</p><p>one,ts-raw</p>
|