mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 07:14:50 +00:00
31 lines
704 B
Plaintext
31 lines
704 B
Plaintext
|
title: Genesis/RedefineLet
|
||
|
description: Using the genesis widget to override the let widget
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Output
|
||
|
|
||
|
\whitespace trim
|
||
|
\widget $let()
|
||
|
\whitespace trim
|
||
|
<$parameters $params="@params">
|
||
|
<$setmultiplevariables $names="[<@params>jsonindexes[]]" $values="[<@params>jsonindexes[]] :map[<@params>jsonget<currentTiddler>addprefix[--]addsuffix[--]]">
|
||
|
<$slot $name="ts-raw"/>
|
||
|
</$setmultiplevariables>
|
||
|
</$parameters>
|
||
|
\end
|
||
|
<$let
|
||
|
one="Elephant"
|
||
|
$two="Kangaroo"
|
||
|
$$three="Giraffe"
|
||
|
>
|
||
|
(<$text text=<<one>>/>)
|
||
|
(<$text text=<<$two>>/>)
|
||
|
(<$text text=<<$$three>>/>)
|
||
|
</$let>
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>(--Elephant--)
|
||
|
(--Kangaroo--)
|
||
|
(--Giraffe--)</p>
|