A helper for registering handlebars view partials for a given path
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.js
package.json

README.md

Easily register handlebars partials as all views in the path whose name is lead by an underscore. In the example below, /views/_log_in_form and /views/_sign_up_form would be registered as partials logInForm and SignUpForm, respectively.

var view_partials = require('./lib/view_partials')
    , partial_path = __dirname + '/views';

view_partials.registerPartials(partial_path);