mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-30 22:56:17 +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>
15 lines
346 B
Plaintext
15 lines
346 B
Plaintext
title: Transclude/Variable/Static
|
|
description: Transcluding a function
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
items: 1 2 3 4 5 6 7 8 9 10
|
|
|
|
\function list-join(filter, sep:", ") [subfilter<filter>join<sep>]
|
|
|
|
<<list-join "[enlist{!!items}]">>
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>1, 2, 3, 4, 5, 6, 7, 8, 9, 10</p> |