kss-node/kss-node — pull request #107 by rcaracaus (2014-08-25 01:06:54+00:00)
Title: Custom handlebar helpers

Based on https://github.com/kss-node/kss-node/pull/104 and https://github.com/kss-node/kss-node/pull/101

This PR adds ability to also specify custom directory because the default path defined in the PR's above was not working for the external styleguide setup I had running locally.

Steps to test:

Create a /helpers directory in your styleguide directory.

Place following test handlebars helper in a file link.js (helpers/link.js):

```
module.exports.register = function (handlebars, options) {
handlebars.registerHelper('link', function(text, url) {
return new handlebars.SafeString(
"" + text + ""
);
});
};
```

Run this command from styleguide directory:

../node_modules/.bin/kss-node ./ --helpers helpers