mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 02:26:19 +00:00
26 lines
673 B
Plaintext
26 lines
673 B
Plaintext
title: Transclude/CustomWidget/Fail
|
|
description: Custom widget failed definition
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
<!-- Attempt to define the <$non-existent-widget> widget by defining a transcludable variable with that name -->
|
|
\widget $non-existent-widget(one:'Jaguar')
|
|
\whitespace trim
|
|
<$text text=<<one>>/>
|
|
<$slot $name="ts-body">
|
|
Whale
|
|
</$slot>
|
|
\end
|
|
<$non-existent-widget one="Dingo">
|
|
Crocodile
|
|
</$non-existent-widget>
|
|
<$non-existent-widget one="BumbleBee">
|
|
Squirrel
|
|
</$non-existent-widget>
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>Undefined widget 'non-existent-widget'Undefined widget 'non-existent-widget'</p> |