mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 19:47:20 +00:00
ff1437e439
* Passing test * Failing test * Fix test It still fails, but now fails correctly * Fix refreshing transcluded functions (#7755) We store the previous result of the filter function and recalculate it when the transclude widget needs to be refreshed, refreshing the widget if the result is different. --------- Co-authored-by: Jeremy Ruston <174761+Jermolene@users.noreply.github.com> Co-authored-by: Robin Munn <rmunn@pobox.com>
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> |