JQTPL old "tmpl" method is now "render"
To anybody who uses JQTPL already this will be obvious, but I just thought I'd post this for anybody who might have gone down the path I did. As I mentioned in this post on Stack Overflow I'd been trying to get node.js set up (on my Mac) per Adam Freeman's Apress Book " Pro JavaScript for Web Apps ". The issue I was facing is that it seemed the API changed for JQTPL such that there is no longer a "tmpl" method as implied by this , and also as is clear from reading the source code of jqtpl.js (the current version of which only appears to have "render", "compile", "cache" and "$" methods as per this page . Adam's code from his "server.js" file contains the following line: res.write(jqtpl.tmpl(loadTemplate(req.url.substring(1)), data)); which causes the following error: /Users/dave/NodeJsTesting/server.js:43 res.write(jqtpl.tmpl(loadTemplate(req....