mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 02:26:19 +00:00
e092113f9f
I now need to update the OP!
33 lines
661 B
Plaintext
33 lines
661 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
|
|
\procedure <$let>
|
|
\whitespace trim
|
|
<$setmultiplevariables $names="[enlist:raw<paramNames>]" $values="[enlist:raw<paramValues>addprefix[--]addsuffix[--]]">
|
|
<$slot $name="ts-body"/>
|
|
</$setmultiplevariables>
|
|
\end
|
|
<$let
|
|
one="Elephant"
|
|
$two="Kangaroo"
|
|
$$three="Giraffe"
|
|
>
|
|
(<$text text=<<one>>/>)
|
|
(<$text text=<<$two>>/>)
|
|
(<$text text=<<$$three>>/>)
|
|
</$let>
|
|
+
|
|
title: Definition
|
|
|
|
\whitespace trim
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>(--Elephant--)
|
|
(--Kangaroo--)
|
|
(--Giraffe--)</p> |