mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-04-27 15:50:53 -07:00
* Add ((var)) syntax for passing multi-valued variables through transclude pipeline
Introduce ((var)) attribute syntax to explicitly pass
MVVs to procedures and functions via $transclude, solving the limitation
where <<var>> always resolves to the first value only for backwards
compatibility. Also adds ((var||sep)) and (((filter||sep))) inline display
syntax for debugging MVV values, and multivalued defaults for parameter attributes
* Create pr-draft.md
* Revert "Create pr-draft.md"
This reverts commit dd116af41b.
* Update change note
* Fix linting errors
19 lines
482 B
Text
19 lines
482 B
Text
title: MultiValuedVariables/TranscludeParameter
|
|
description: Multi-valued variable passed as procedure parameter via ((var)) syntax
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
\procedure showItems(itemList)
|
|
<$text text={{{ [(itemList)join[-]] }}}/>
|
|
\end
|
|
<$let items={{{ [all[tiddlers]sort[]] }}}>
|
|
<$transclude $variable="showItems" itemList=((items))/>
|
|
</$let>
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>$:/core-ExpectedResult-Output</p>
|
|
+
|