2022-05-03 11:55:10 +00:00
|
|
|
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
|
2022-05-09 17:00:09 +00:00
|
|
|
\procedure <$let>
|
2022-05-03 11:55:10 +00:00
|
|
|
\whitespace trim
|
2022-05-05 10:34:30 +00:00
|
|
|
<$setmultiplevariables $names="[enlist:raw<paramNames>]" $values="[enlist:raw<paramValues>addprefix[--]addsuffix[--]]">
|
2022-05-03 11:55:10 +00:00
|
|
|
<$slot $name="ts-body"/>
|
|
|
|
</$setmultiplevariables>
|
|
|
|
\end
|
|
|
|
<$let
|
|
|
|
one="Elephant"
|
|
|
|
$two="Kangaroo"
|
|
|
|
$$three="Giraffe"
|
|
|
|
>
|
|
|
|
(<$text text=<<one>>/>)
|
|
|
|
(<$text text=<<$two>>/>)
|
|
|
|
(<$text text=<<$$three>>/>)
|
|
|
|
</$let>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-05-03 11:55:10 +00:00
|
|
|
title: Definition
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-05-03 11:55:10 +00:00
|
|
|
title: ExpectedResult
|
|
|
|
|
|
|
|
<p>(--Elephant--)
|
|
|
|
(--Kangaroo--)
|
|
|
|
(--Giraffe--)</p>
|