0.0.1 • Published 9 years ago

sails-hook-dust-exec v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

sails-hook-dust-exec

Dust.js (Linkedin) helpers that works with Sails JS to be able execute functions in view

Installation

  1. Make sure your Sails app. use Dust.js as template engine
  2. Install this hook by npm install sails-hook-dust-exec

Helpers Included

  1. exec

Usage

requires at least sails >= 0.11

  1. Put function in func argument, example: {@exec func="function" /}
  2. Put arguments in args parameter if needed, example: {@exec func="function" args="['param1','param2']" /}

References and Credits

  1. Stackoverflow and that contributed users

License

MIT