1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/nodes/examples/function/template/01 use mustache syntax.json
2020-06-01 14:44:18 +09:00

1 line
992 B
JSON

[{"id":"87bd706a.aec93","type":"comment","z":"3ae4b3d9.1f77bc","name":"Use mustache syntax","info":"Template node can create a string value using [Mustache](http://mustache.github.io/mustache.5.html) syntax.","x":180,"y":60,"wires":[]},{"id":"1d17715c.34170f","type":"inject","z":"3ae4b3d9.1f77bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Hello, World!","payloadType":"str","x":210,"y":120,"wires":[["e2e46e93.c9a7e"]]},{"id":"e2e46e93.c9a7e","type":"template","z":"3ae4b3d9.1f77bc","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"This is the payload: {{payload}} !","output":"str","x":380,"y":120,"wires":[["9930fecd.ee0c8"]]},{"id":"9930fecd.ee0c8","type":"debug","z":"3ae4b3d9.1f77bc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":550,"y":120,"wires":[]}]