mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 10:34:53 +00:00
36cf50aa96
Need to do some refactoring of all those isFunctionDefinition/isProcedureDefinition/isWidgetDefinition flags into a single property
31 lines
668 B
Plaintext
31 lines
668 B
Plaintext
title: Transclude/CustomWidget/TextWidgetOverride
|
|
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>
|
|
+
|
|
title: TiddlerOne
|
|
|
|
\whitespace trim
|
|
<!-- Redefine the <$text> widget by defining a transcludable variable with that name -->
|
|
\widget $text(text:'Jaguar')
|
|
\whitespace trim
|
|
<$genesis $type="text" $remappable="no" text=<<text>>/>
|
|
<$set name="$text" value="">
|
|
<$slot $name="ts-body">
|
|
Whale
|
|
</$slot>
|
|
</$set>
|
|
\end
|
|
<$text text="Dingo">
|
|
Crocodile
|
|
</$text>
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>DingoCrocodile</p> |