mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 18:59:42 +00:00
64812f5c06
* Add join attribute to list widget * Use new join attribute in HTML saving templates This simplifies the logic involved in saving tiddlers in JSON format into TW html files, and should also slightly speed up the saving process depending on how often that list widget gets refreshed. * Unit tests for list widget's new join attribute * Add `<$list-join>` widget Allows specifying complicated join text more easily than an attribute
32 lines
624 B
Plaintext
32 lines
624 B
Plaintext
title: ListWidget/WithJoinTemplateInBlockMode
|
|
description: List widget with join template and $list-empty in block mode
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
+
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
|
|
\procedure test(filter)
|
|
<$list filter=<<filter>>>
|
|
|
|
Item:<<currentTiddler>>
|
|
|
|
<$list-empty>
|
|
None!
|
|
</$list-empty>
|
|
|
|
<$list-join><br></$list-join>
|
|
</$list>
|
|
\end
|
|
|
|
<<test "1 2 3">>
|
|
|
|
<<test "">>
|
|
|
|
+
|
|
title: ExpectedResult
|
|
comment: I wish there was a good way to get rid of these extraneous paragraph elements
|
|
|
|
<p>Item:1</p><p></p><p></p><br><p>Item:2</p><p></p><p></p><br><p>Item:3</p><p></p><p></p>None! |