Web-1/Templates/Nodered-templates-2
Naar navigatie springen
Naar zoeken springen
[{"id":"4978f56d.d6810c","type":"http in","z":"bbf4986a.b1a1c8","name":"/","url":"/","method":"get","upload":false,"swaggerDoc":"","x":110,"y":160,"wires":[["8278c381.895a2"]]},{"id":"e4dc2f25.9e075","type":"http in","z":"bbf4986a.b1a1c8","name":"/about","url":"/about","method":"get","upload":false,"swaggerDoc":"","x":110,"y":220,"wires":[["4d2eb24f.89065c"]]},{"id":"dbb5eb7e.423918","type":"template","z":"bbf4986a.b1a1c8","name":"Page-template","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<!doctype html>\n<html>\n <head>\n <title>{{pagetitle}}</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":640,"y":160,"wires":[["5398b4f6.96605c"]]},{"id":"5398b4f6.96605c","type":"http response","z":"bbf4986a.b1a1c8","name":"","statusCode":"","headers":{},"x":790,"y":160,"wires":[]},{"id":"59651bc4.68d1e4","type":"template","z":"bbf4986a.b1a1c8","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":450,"y":160,"wires":[["dbb5eb7e.423918"]]},{"id":"b1af728.ff9ec9","type":"template","z":"bbf4986a.b1a1c8","name":"About","field":"pagecontents","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<h3>Pagina 2</h3>\n<p>\n Dit is het vervolg.\n</p>\n","output":"str","x":450,"y":220,"wires":[["dbb5eb7e.423918"]]},{"id":"8278c381.895a2","type":"function","z":"bbf4986a.b1a1c8","name":"process-home","func":"msg.pagetitle = \"Home\";\nreturn msg;","outputs":1,"noerr":0,"x":280,"y":160,"wires":[["59651bc4.68d1e4"]]},{"id":"4d2eb24f.89065c","type":"function","z":"bbf4986a.b1a1c8","name":"process-about","func":"msg.pagetitle = \"About\";\nreturn msg;","outputs":1,"noerr":0,"x":280,"y":220,"wires":[["b1af728.ff9ec9"]]}]