title: Node.js : How to embed Node.js into HTML?
body: <p><strong>In a php file I can do:</strong></p>
  
  <pre><code>&lt;p&gt;&lt;?php echo "hello!";?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Is there a way to do this in node, if yes what's the logic for it?</p>
  
  <p><strong>I have an idea how could this be done:</strong></p>
  
  <ul>
  <li><p>Use an identifier markup for node in the HTML file like: <code>&lt;node&gt;code&lt;/node&gt;</code></p></li>
  <li><p>Load &amp; Parse HTML file in Node</p></li>
  <li><p>Grab node markup from the HTML file and run it</p></li>
  </ul>
  
  <p>But I'm not sure if this is the best way or even if it works :)</p>
  
  <p>Please note I want to learn <code>node.js</code>, so express and other libraries and modules are not answers for me, because I want to know the logic of the process.</p>