TiddlyWiki5/editions/tw5.com/tiddlers/test-getvariablejson.tid

30 lines
739 B
Plaintext

created: 20240506064659892
modified: 20240506101142810
tags:
title: test-getvariablejson
type: text/vnd.tiddlywiki
\define test-macro(a:10) test macro
\procedure test-proc(a:10) test proc
\function my.test(x:3, abc:def) [<test-proc>split[ ]]
\function tab() [charcode[9]]
\define elements() srcVariable params name default
\define openBracket() [
\define closeBracket() ]
<<.example 1 """\procedure test-proc(a:10) test proc
\function my.test(x:3, abc:def) [<test-proc>split[ ]]
\function tab() [charcode[9]]
<pre><$text text={{{[[my.test]getvariablejson[],<tab>]}}}/></pre>
""">>
<<.example 2 """<pre><$text text={{{[[my.test]getvariablejson[],<tab>] +[jsonextract[srcVariable],[params]] +[format:json<tab>] }}}/></pre>""">>