Web-1/Templates/Nodered-templates-1

Uit Inf2019
< Web-1‎ | Templates
Versie door Eelco (overleg | bijdragen) op 7 nov 2017 om 22:52 (1 versie geïmporteerd)
Naar navigatie springen Naar zoeken springen
[{"id":"defaccac.b5f5c","type":"tab","label":"Template test","disabled":true,"info":""},{"id":"3eae6d93.6f33e2","type":"http in","z":"defaccac.b5f5c","name":"/","url":"/","method":"get","upload":false,"swaggerDoc":"","x":190,"y":140,"wires":[["175660db.092ebf"]]},{"id":"d1df412b.13c3","type":"http in","z":"defaccac.b5f5c","name":"/about","url":"/about","method":"get","upload":false,"swaggerDoc":"","x":190,"y":220,"wires":[["fb8e4775.e5d258"]]},{"id":"ba642846.013c58","type":"template","z":"defaccac.b5f5c","name":"Page-template","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<!doctype html>\n<html>\n    <head>\n        <title>My Website</title>    \n    </head>\n    <body>\n        <header>\n            <h3>Mijn eerste NodeRed website</h3>\n        </header>\n        {{{pagecontents}}}\n        <nav>\n            <a href=\"/\">Home</a>\n            <a href=\"/about\">Over deze website</a>\n        </nav>\n    </body>\n</html>","output":"str","x":580,"y":140,"wires":[["f0de7515.d74848"]]},{"id":"f0de7515.d74848","type":"http response","z":"defaccac.b5f5c","name":"","statusCode":"","headers":{},"x":730,"y":140,"wires":[]},{"id":"175660db.092ebf","type":"template","z":"defaccac.b5f5c","name":"Home","field":"pagecontents","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<h3>Welkom</h3>\n<p>\n    Welkom! Dit is de eerste pagina.\n</p>\n","output":"str","x":370,"y":140,"wires":[["ba642846.013c58"]]},{"id":"fb8e4775.e5d258","type":"template","z":"defaccac.b5f5c","name":"About","field":"pagecontents","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<h3>Over deze website</h3>\n<p>\n    Hier komt een uitleg over deze website.\n</p>\n","output":"str","x":370,"y":220,"wires":[["ba642846.013c58"]]}]