mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-29 04:49:55 +00:00
23 lines
953 B
Plaintext
23 lines
953 B
Plaintext
|
title: JSONTiddlerWidget
|
||
|
created: 20210630100923398
|
||
|
modified: 20210630100923398
|
||
|
tags: Widgets
|
||
|
caption: jsontiddler
|
||
|
|
||
|
! Introduction
|
||
|
|
||
|
The jsontiddler widget renders the fields of a tiddler to display as a JSON object. The fields of the tiddler can be customised or excluded.
|
||
|
|
||
|
The jsontiddler widget is used in system templates to generate JSON representations of tiddlers for saving.
|
||
|
|
||
|
! Content and Attributes
|
||
|
|
||
|
The content of the `<$jsontiddler>` widget is ignored.
|
||
|
|
||
|
|!Attribute |!Description |
|
||
|
|tiddler |Optional title of the tiddler from which the fields are to be displayed |
|
||
|
|exclude |Optional space separated list of fields to be excluded |
|
||
|
|escapeUnsafeScriptChars |If set to "yes" then the `<` character will be escaped to the equivalent `\u003C` encoding |
|
||
|
|//{any attributes starting with $}// |Each attribute name (without the leading `$`) specifies a field to be modified with the attribute value providing the value to assign to the field |
|
||
|
|