Dust.js (Linkedin) helpers that works with Sails JS to be able execute functions in view
- Make sure your Sails app. use Dust.js as template engine
- Install this hook by
npm install sails-hook-dust-exec
exec
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']" /}
- Stackoverflow and that contributed users
MIT