mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-02 17:00:45 +00:00
28 lines
708 B
Plaintext
28 lines
708 B
Plaintext
created: 20240506064659892
|
|
modified: 20240506100851338
|
|
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[ ]]
|
|
|
|
|
|
\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>""">>
|
|
|