mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 15:29:56 +00:00
use jsonvariable and jsonextract instead of getvariable to read variable value
This commit is contained in:
parent
8e9bf8889d
commit
4b53e49409
@ -56,7 +56,7 @@ tags: $:/tags/Global
|
|||||||
<li>
|
<li>
|
||||||
<code title={{$:/language/Search/Variables/Signature}}><$text text=<<tf.dv-formattedVar>>/></code><br/>
|
<code title={{$:/language/Search/Variables/Signature}}><$text text=<<tf.dv-formattedVar>>/></code><br/>
|
||||||
<% if [<tf.dv-formattedVar>prefix[\function]] %>
|
<% if [<tf.dv-formattedVar>prefix[\function]] %>
|
||||||
<pre title={{$:/language/Search/Variables/Function/Definition}}><code><$text text={{{ [<varname>getvariable[value]] }}}/></code></pre>
|
<pre title={{$:/language/Search/Variables/Function/Definition}}><code><$text text={{{ [<varname>jsonvariable[]jsonextract[srcVariable],[value]] }}}/></code></pre>
|
||||||
<% endif %>
|
<% endif %>
|
||||||
<pre title={{$:/language/Search/Variables/Content}}><code><$text text={{{ [<varname>getvariable[]] }}}/></code></pre>
|
<pre title={{$:/language/Search/Variables/Content}}><code><$text text={{{ [<varname>getvariable[]] }}}/></code></pre>
|
||||||
</li>
|
</li>
|
||||||
@ -235,7 +235,7 @@ tags: $:/tags/Global
|
|||||||
<<dv-info>>
|
<<dv-info>>
|
||||||
<% endif %>
|
<% endif %>
|
||||||
<% if [<varname>prefix[\function]] %>
|
<% if [<varname>prefix[\function]] %>
|
||||||
<$codeblock code={{{ [<varname>getvariable[value]] }}}/>
|
<$codeblock code={{{ [<varname>jsonvariable[]jsonextract[srcVariable],[value]] }}}/>
|
||||||
<% endif %>
|
<% endif %>
|
||||||
<pre tabindex="0" title={{$:/language/Search/Variables/Content}}><code><$text text={{{ [<varname>getvariable[]] }}}/></code></pre>
|
<pre tabindex="0" title={{$:/language/Search/Variables/Content}}><code><$text text={{{ [<varname>getvariable[]] }}}/></code></pre>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
Loading…
Reference in New Issue
Block a user