title: How to send msg.payload from function node to template node
body: <p>How to send <code>msg.payload</code> from function node(tool) to template node(html)?</p>
  
  <p><a href="https://i.stack.imgur.com/gnEVa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gnEVa.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script type="text/javascript"&gt;
      // function test() {
      //      document.getElementById("test1").innerHTML = msg.payload;
      // }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="test()"&gt;
      &lt;h1 id="test1"&gt;{{msg.payload}}&lt;/h1&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>