Front-end Website with Node-RED: Example Form
This Flow demonstrates how to create a simple front-end webpage with Node-RED.
The public facing page consists of the client side JavaScript, CSS and HTML.
The important technique is how the mustache templates are used. Each template will set the "property" relative to the content.
The CSS node sets the "msg.payload.style" property. The JavaScript node sets the "msg.payload.script" property. The HTML node then includes these properties
<script>{{{payload.script}}}</script>
<style>{{{payload.style}}}</style>
This example was created by http://www.InternetofLEGO.com
Using CSS to style an HTML form with AJAX POST and Node-RED
\nInternet of LEGO
\n\n\n \n
\n\n \n
\n\n