1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-07 18:39:57 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/transclude/CustomWidget-Simple.tid

33 lines
678 B
Plaintext
Raw Normal View History

title: Transclude/CustomWidget/Simple
2022-04-24 20:24:38 +00:00
description: Custom widget definition
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
<$transclude $tiddler='TiddlerOne' one='Ferret'>
</$transclude>
+
2022-04-24 20:24:38 +00:00
title: TiddlerOne
\whitespace trim
<!-- Define the <$$mywidget> widget by defining a transcludable variable with that name -->
\widget $$mywidget(one:'Jaguar')
\whitespace trim
<$text text=<<one>>/>
<$slot $name="ts-raw">
Whale
</$slot>
\end
<$$mywidget one="Dingo">
Crocodile
</$$mywidget>
<$$mywidget one="BumbleBee">
Squirrel
</$$mywidget>
2022-10-09 12:54:08 +00:00
<$$mywidget/>
+
2022-04-24 20:24:38 +00:00
title: ExpectedResult
2022-10-09 12:54:08 +00:00
<p>DingoCrocodileBumbleBeeSquirrelJaguarWhale</p>