Posts

Showing posts with the label markup

Node.js : How to embed Node.js into HTML?

Image
Clash Royale CLAN TAG #URR8PPP Node.js : How to embed Node.js into HTML? In a php file I can do: <p><?php echo "hello!";?></p> Is there a way to do this in node, if yes what's the logic for it? I have an idea how could this be done: Use an identifier markup for node in the HTML file like: <node>code</node> <node>code</node> Load & Parse HTML file in Node Grab node markup from the HTML file and run it But I'm not sure if this is the best way or even if it works :) Please note I want to learn node.js , so express and other libraries and modules are not answers for me, because I want to know the logic of the process. node.js One or more of the answers is exemplary and worthy of an additional bounty. nice question, you see it, its very nice Join us in the node.js chat room ;) – Raynos May 18 '11 at 21:05 ...