mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 18:59:42 +00:00
28 lines
821 B
Plaintext
28 lines
821 B
Plaintext
title: Data/ImportFilter
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
description: Importing a payload filter and adding custom fields
|
|
|
|
title: Description
|
|
text: Importing a payload filter and adding custom fields
|
|
+
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
<$testcase template="$:/core/ui/testcases/RawJSONTemplate">
|
|
<$data $filter="[tag[Definitions]]" custom="Alpha"/>
|
|
</$testcase>
|
|
+
|
|
title: HelloThere
|
|
tags: Definitions
|
|
|
|
This is the tiddler HelloThere
|
|
+
|
|
title: AnotherDefinition
|
|
tags: Definitions
|
|
|
|
This is the tiddler AnotherDefinition
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p><div><div>[{"title":"AnotherDefinition","tags":"Definitions","text":"This is the tiddler AnotherDefinition","custom":"Alpha"},{"title":"HelloThere","tags":"Definitions","text":"This is the tiddler HelloThere","custom":"Alpha"}]</div></div></p> |