mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 02:26:19 +00:00
27 lines
493 B
Plaintext
27 lines
493 B
Plaintext
|
title: Transclude/Variable/Refreshing
|
||
|
description: Transcluding and refreshing a function
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Output
|
||
|
|
||
|
\function list-join(filter, sep:", ") [subfilter<filter>join<sep>]
|
||
|
|
||
|
<$tiddler tiddler="TestData">
|
||
|
|
||
|
<<list-join "[enlist{!!items}]">>
|
||
|
|
||
|
</$tiddler>
|
||
|
|
||
|
+
|
||
|
title: TestData
|
||
|
|
||
|
|
||
|
+
|
||
|
title: Actions
|
||
|
|
||
|
<$action-setfield $tiddler="TestData" items={{{ [range[10]join[ ]] }}}/>
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>1, 2, 3, 4, 5, 6, 7, 8, 9, 10</p>
|