1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-07 02:26:19 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/globals/CustomWidget.tid
jeremy@jermolene.com 150266c731 Use underscores for new system fields for global variable tiddlers
For consistency with `_canonical_uri`; unlike many system fields, the behaviour of these fields is baked into the core JS code.
2022-05-30 18:38:25 +01:00

22 lines
428 B
Plaintext

title: Globals/CustomWidget
description: Global shadow variable defining a custom widget
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
<$$mywidget foo="Mahogany">
Sycamore!
</$$mywidget>
+
title: $:/global/$$mywidget
_is_widget: yes
_parameters: (foo:"bar")
Koala! <$text text=<<foo>>/>, <$slot $name="ts-body"/>
+
title: ExpectedResult
<p>Koala! Mahogany, Sycamore!</p>