1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-07 02:26:19 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/transclude/CustomWidget-TextWidgetOverride.tid

29 lines
599 B
Plaintext
Raw Normal View History

title: Transclude/CustomWidget/TextWidgetOverride
2022-04-24 20:24:38 +00:00
description: Custom widget definition redefining the text widget
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
<$transclude $tiddler='TiddlerOne'>
</$transclude>
+
2022-04-24 20:24:38 +00:00
title: TiddlerOne
\whitespace trim
<!-- Redefine the <$text> widget by defining a transcludable variable with that name -->
\function <$text>(text:'Jaguar')
\whitespace trim
<$text text=<<text>>/>
<$slot $name="ts-body">
Whale
</$slot>
\end
<$text text="Dingo">
Crocodile
</$text>
+
2022-04-24 20:24:38 +00:00
title: ExpectedResult
<p>DingoCrocodile</p>