Skip to content

itsthatguy/sails-hook-handlebars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

sails.hook.handlebars.render(<templatePath>, <context>);

example:

template file

{{!-- assets/templates/myTemplate.hbs --}}

Hello. My name is {{name}}.

javascript file

sails.hook.handlebars.render('myTemplate', {name: "Kevin"});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published