Tag Archives: Software Sagacity

Node.js – EJS Function in Module

Node.jsThe EJS templating engine is one of the more effective ways to render HTML from Node / Express.js.  With an HTML syntax and simple tags for including server-side JavaScript, EJS combines the best of both HTML and Node.  While other templating engines such as Handlebars.js can also work with HTML, the EJS format is particularly flexible by enabling the full capability of the JavaScript interpreter in the template body.
Continue reading

RSS Twitter LinkedIn Facebook Email

Node.js – Dynamically Loading EJS Templates

Node.jsNode.js offers a powerful engine for high-performance web development.  One of the challenges with the stock Express distribution, however, is it’s low-quality default templating system.  Jade is littered with obscure syntax, and often requires manual conversion from HTML templates in many development workflows.  Luckily, installing the EJS templating system is relatively easy, and developers can reap dividends in increased productivity throughout the lifecycle of the software.
Continue reading

RSS Twitter LinkedIn Facebook Email