1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-24 15:00:03 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/transclude/CustomWidget-RawAndSlotted.tid

34 lines
732 B
Plaintext
Raw Permalink Normal View History

title: Transclude/CustomWidget/RawAndSlotted
description: Custom widget can mix ts-raw and custom slots
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
\widget $my.widget()
\whitespace trim
<$slot $name="ts-header">
Default Header
</$slot>
-
<$slot $name="ts-raw"/>
\end
<$my.widget>
First Body
</$my.widget>
<$my.widget>
<$fill $name="ts-header">
Custom Header
</$fill>
<$fill $name="ts-never">
<$log RawAndSlotted="Transclude/CustomWidget/RawAndSlotted is actually failing. $fill slots are executing silently when they weren't invoked." />
</$fill>
Second Body
</$my.widget>
+
title: ExpectedResult
<p>Default Header-First Body</p><p>Custom Header-Second Body</p>