1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-04 23:39:57 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/test-jsonvariable-conat.tid

41 lines
900 B
Plaintext
Raw Normal View History

2024-05-06 10:53:36 +00:00
created: 20240506101435113
modified: 20240506140610448
2024-05-06 10:53:36 +00:00
tags:
2024-05-23 05:24:13 +00:00
title: test-jsonvariables-conat
2024-05-06 10:53:36 +00:00
type: text/vnd.tiddlywiki
''Nice to have''
<<.example 1 """\function tab() [charcode[9]]
2024-05-23 05:24:13 +00:00
<pre><$text text={{{[[.concat]jsonvariables[]]}}}/></pre>
2024-05-06 10:53:36 +00:00
""">>
''Human readable version''
<<.example 2 """\function tab() [charcode[9]]
2024-05-23 05:24:13 +00:00
<pre><$text text={{{[[.concat]jsonvariables[]format:json<tab>]}}}/></pre>
2024-05-06 10:53:36 +00:00
""">>
''Function definition''
<<.example 3 """\function tab() [charcode[9]]
2024-05-23 05:24:13 +00:00
<pre><$text text={{{[[.concat]jsonvariables[]jsonextract[srcVariable],[value]format:json<tab>]}}}/></pre>
2024-05-06 10:53:36 +00:00
""">>
''Get parameters''
<<.example 4 """\function tab() [charcode[9]]
2024-05-23 05:24:13 +00:00
<pre><$text text={{{[[.concat]jsonvariables[]jsonextract[srcVariable],[params]format:json<tab>]}}}/></pre>
2024-05-06 10:53:36 +00:00
""">>
''Expected''
<<.example 5 """\function tab() [charcode[9]]
<pre><$text text={{{[[.concat]format:variable[]]}}}/></pre>
""">>