mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add support for flow and global context in Template node (#1048)
* Enable tests for flow and global context * Add support for flow and global context in Template node * Handle missing node context
This commit is contained in:
committed by
Nick O'Leary
parent
d63996eea1
commit
be18cc9f2d
@@ -67,6 +67,7 @@
|
||||
}</pre>
|
||||
<p>The resulting property will be:
|
||||
<pre>Hello Fred. Today is Monday</pre>
|
||||
<p>It is possible to use property from flow context or global context. Just use <code>{{flow.name}}</code> or <code>{{global.name}}</code>.
|
||||
<p>By default, mustache will escape any HTML entities in the values it substitutes.
|
||||
To prevent this, use <code>{{{triple}}}</code> braces.
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user