2022-04-30 10:00:38 +01:00
|
|
|
title: Transclude/CustomWidget/Simple
|
2022-04-24 21:24:38 +01:00
|
|
|
description: Custom widget definition
|
|
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
|
|
|
|
title: Output
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-04-30 10:00:38 +01:00
|
|
|
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
|
|
|
</$transclude>
|
2022-05-03 16:53:00 +01:00
|
|
|
+
|
2022-04-24 21:24:38 +01:00
|
|
|
title: TiddlerOne
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-05-21 15:47:19 +01:00
|
|
|
<!-- Define the <$$mywidget> widget by defining a transcludable variable with that name -->
|
|
|
|
\widget $$mywidget(one:'Jaguar')
|
2022-05-02 10:56:22 +01:00
|
|
|
\whitespace trim
|
|
|
|
<$text text=<<one>>/>
|
2022-06-09 18:02:47 +01:00
|
|
|
<$slot $name="ts-raw">
|
2022-05-02 10:56:22 +01:00
|
|
|
Whale
|
|
|
|
</$slot>
|
|
|
|
\end
|
2022-05-21 15:47:19 +01:00
|
|
|
<$$mywidget one="Dingo">
|
2022-05-02 10:56:22 +01:00
|
|
|
Crocodile
|
2022-05-21 15:47:19 +01:00
|
|
|
</$$mywidget>
|
|
|
|
<$$mywidget one="BumbleBee">
|
2022-05-03 17:59:45 +01:00
|
|
|
Squirrel
|
2022-05-21 15:47:19 +01:00
|
|
|
</$$mywidget>
|
2022-10-09 13:54:08 +01:00
|
|
|
<$$mywidget/>
|
2022-05-03 16:53:00 +01:00
|
|
|
+
|
2022-04-24 21:24:38 +01:00
|
|
|
title: ExpectedResult
|
|
|
|
|
2022-10-09 13:54:08 +01:00
|
|
|
<p>DingoCrocodileBumbleBeeSquirrelJaguarWhale</p>
|