2022-04-30 10:00:38 +01:00
|
|
|
title: Transclude/CustomWidget/OverrideTransclude
|
|
|
|
description: Custom widget definition attempting to override transclude
|
|
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
|
|
|
|
title: Output
|
|
|
|
|
|
|
|
\whitespace trim
|
|
|
|
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
|
|
|
</$transclude>
|
2022-05-03 16:53:00 +01:00
|
|
|
+
|
2022-04-30 10:00:38 +01:00
|
|
|
title: TiddlerZero
|
|
|
|
|
|
|
|
Antelope
|
2022-05-03 16:53:00 +01:00
|
|
|
+
|
2022-04-30 10:00:38 +01:00
|
|
|
title: TiddlerOne
|
|
|
|
|
|
|
|
\whitespace trim
|
|
|
|
<!-- Redefine the <$transclude> widget by defining a transcludable variable with that name -->
|
2022-05-13 08:49:53 +01:00
|
|
|
\widget $transclude(one:'Jaguar')
|
2022-05-02 10:56:22 +01:00
|
|
|
\whitespace trim
|
|
|
|
<$text text=<<one>>/>
|
|
|
|
<$slot $name="body">
|
|
|
|
Whale
|
|
|
|
</$slot>
|
|
|
|
\end
|
2022-09-09 10:37:39 +01:00
|
|
|
<$genesis $type="$transclude" $remappable="no" $$tiddler="TiddlerZero">
|
2022-05-02 10:56:22 +01:00
|
|
|
Crocodile
|
2022-05-05 08:20:14 +01:00
|
|
|
</$genesis>
|
2022-05-03 16:53:00 +01:00
|
|
|
+
|
2022-04-30 10:00:38 +01:00
|
|
|
title: ExpectedResult
|
|
|
|
|
|
|
|
<p>Antelope</p>
|