sails-hook-dust-exec
v0.0.1
Published
Dust.js (Linkedin) helpers that works with [Sails JS](http://sailsjs.org) to be able execute functions in view
Downloads
4
Maintainers
Readme
sails-hook-dust-exec
Dust.js (Linkedin) helpers that works with Sails JS to be able execute functions in view
Installation
- Make sure your Sails app. use Dust.js as template engine
- Install this hook by
npm install sails-hook-dust-exec
Helpers Included
exec
Usage
requires at least sails >= 0.11
- Put function in
func
argument, example:{@exec func="function" /}
- Put arguments in
args
parameter if needed, example:{@exec func="function" args="['param1','param2']" /}
References and Credits
- Stackoverflow and that contributed users
License
MIT