2022-04-30 09:00:38 +00:00
|
|
|
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
|
2022-04-30 09:00:38 +00:00
|
|
|
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
|
|
|
</$transclude>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-24 20:24:38 +00:00
|
|
|
title: TiddlerOne
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-05-21 14:47:19 +00:00
|
|
|
<!-- Define the <$$mywidget> widget by defining a transcludable variable with that name -->
|
|
|
|
\widget $$mywidget(one:'Jaguar')
|
2022-05-02 09:56:22 +00:00
|
|
|
\whitespace trim
|
|
|
|
<$text text=<<one>>/>
|
|
|
|
<$slot $name="ts-body">
|
|
|
|
Whale
|
|
|
|
</$slot>
|
|
|
|
\end
|
2022-05-21 14:47:19 +00:00
|
|
|
<$$mywidget one="Dingo">
|
2022-05-02 09:56:22 +00:00
|
|
|
Crocodile
|
2022-05-21 14:47:19 +00:00
|
|
|
</$$mywidget>
|
|
|
|
<$$mywidget one="BumbleBee">
|
2022-05-03 16:59:45 +00:00
|
|
|
Squirrel
|
2022-05-21 14:47:19 +00:00
|
|
|
</$$mywidget>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-24 20:24:38 +00:00
|
|
|
title: ExpectedResult
|
|
|
|
|
2022-05-03 16:59:45 +00:00
|
|
|
<p>DingoCrocodileBumbleBeeSquirrel</p>
|