sails-hook-handlebars
Allows using handlebars on the backend for templating dynamic data. (for use with sailsjs)
installation:
npm install sails-hook-handlebars --save
usage:
sailshookhandlebars;
example:
template file
{{!-- assets/templates/myTemplate.hbs --}} Hello. My name is {{name}}.
javascript file
sailshookhandlebars;