Tag Archives: node fs

NodeJS, ExpressJS and MustacheJS Template Engine

Here is a very scaled back way of using NodeJS, ExpressJS and Mustache JS to render full blown web pages using HTML templates. I seem to think this is a much easier solution than what I’ve seen so far on the web. Continue reading

Posted in JavaScript, mustache, node.js | Tagged , , , , , , , , , , , | 1 Comment

Listen for Folder or File Changes Using “Node.js”

Here is a quick tutorial on using fs.watchFile and fs.readFile in node.js. This will listen or “watch” for file changes on the server and then spit the contents of the file out to the console. However once you get a handle to the data you can do something more useful with it. Let’s check it out.

Continue reading

Posted in JavaScript, node.js | Tagged , , , , , , , , , | Leave a comment