mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-13 18:22:14 -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
17 lines
469 B
Text
17 lines
469 B
Text
title: MultiValuedVariables/TranscludeParameterFunction
|
|
description: Multi-valued variable passed as function parameter via ((var)) in $transclude
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
\function showItems(itemList) [(itemList)sort[]join[-]]
|
|
<$let items={{{ [all[tiddlers]] }}}>
|
|
<$transclude $variable="showItems" itemList=((items))/>
|
|
</$let>
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>$:/core-ExpectedResult-Output</p>
|
|
+
|