1
0
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:
Nick O'Leary 2017-06-27 21:52:48 +01:00
parent 8939a9c786
commit fd93fef73e
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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>