1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-28 08:50:01 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/transclude/CustomWidget-RawAndSlotted.tid
Cameron Fischer 4425a891bc
Addresses #7836: Noisy $fill widgets (#8930)
$fill widgets will get ignored when encountered by ts-raw slots
2025-02-14 17:57:06 +00:00

34 lines
732 B
Plaintext

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>