mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Better template node help example
This commit is contained in:
parent
8939a9c786
commit
fd93fef73e
@ -63,12 +63,13 @@
|
|||||||
<p>By default this uses the <i><a href="http://mustache.github.io/mustache.5.html" target="_blank">mustache</a></i>
|
<p>By default this uses the <i><a href="http://mustache.github.io/mustache.5.html" target="_blank">mustache</a></i>
|
||||||
format, but this can be switched off if required.</p>
|
format, but this can be switched off if required.</p>
|
||||||
<p>For example, when a template of:
|
<p>For example, when a template of:
|
||||||
<pre>Hello {{name}}. Today is {{date}}</pre>
|
<pre>Hello {{payload.name}}. Today is {{date}}</pre>
|
||||||
<p>receives a message containing:
|
<p>receives a message containing:
|
||||||
<pre>{
|
<pre>{
|
||||||
name: "Fred",
|
|
||||||
date: "Monday"
|
date: "Monday"
|
||||||
payload: ...
|
payload: {
|
||||||
|
name: "Fred",
|
||||||
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
<p>The resulting property will be:
|
<p>The resulting property will be:
|
||||||
<pre>Hello Fred. Today is Monday</pre>
|
<pre>Hello Fred. Today is Monday</pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user