Handlebars.js Handlebars.js Loop for helper If you just wanted to do something n times then: Handlebars.registerHelper('times', function(n, block) { var accum = ''; for(var i = 0; i and {{#times 10}} {{this}} {{/times}} If
Mean stack Handlebars.js: Logical operator helper Code var hbs = require('hbs'); hbs.registerHelper({ eq: function (v1, v2) { return v1 === v2; }, ne: function (v1, v2) { return v1 !== v2; }, lt: function (v1, v2) { return v1 v2; }, lte: function
Mean stack HTTP request logger middleware for node.js For Install npm i morgan -save -g Use // environment var express = require("express"); var morgan = require("morgan"); var app = express(); // routing app.get('/', function(req, res){ res.send(
Mean stack Monitor node.js application and automatically restart the server for development For install npm install -g nodemon Use nodemon [your node app].js Reference: https://github.com/remy/nodemon