sails-hook-dust-exec

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i sails-hook-dust-exec

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • hellowin