I am trying to build a flow to generate and display an html-page with an included js files.
As this is on the edge of my capabilities and it took me a little effort to set up my docker system I would like to test it before digging into the real application.
So I set up a simple "hello world" flow. Could anyone help me with a very simple JS file that does just anything to show me if my setup works?
[{"id":"1ddb1a13.7a2ece","type":"http in","z":"66d2aa97.2a88b4","name":"/helloworld","url":"/helloworld","method":"get","upload":false,"swaggerDoc":"","x":810,"y":780,"wires":[["eec946da.dc757"]]},{"id":"c7a6dcd3.af8588","type":"inject","z":"66d2aa97.2a88b4","name":"Test","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":830,"y":820,"wires":[["eec946da.dc757"]]},{"id":"eec946da.dc757","type":"function","z":"66d2aa97.2a88b4","name":"Text","func":"\nmsg.helloworld = 'Hello World'\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":990,"y":780,"wires":[["b8c47711.60b948"]]},{"id":"b8c47711.60b948","type":"template","z":"66d2aa97.2a88b4","name":"Helloworld","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<!DOCTYPE html>\n<html>\n\n<head>\n <meta charset=\"utf-8\">\n <title>Hello World</title>\n</head>\n\n<body id=\"page-top\">\n <div id=\"wrapper\">\n <div id=\"content\">\n {{{helloworld}}}\n </div>\n </div>\n</body>\n <script src=\"/scripts/helloworld.js\"></script>\n</html>","output":"str","x":1150,"y":780,"wires":[["db257253.045928"]]},{"id":"db257253.045928","type":"http response","z":"66d2aa97.2a88b4","name":"","statusCode":"","headers":{},"x":1310,"y":780,"wires":[]}]