A mustache loading and rendering library
CoffeeScript
Pull request Compare This branch is 4 commits ahead of quackingduck-archive:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src
.gitignore
LICENSE
Makefile
README.md
package.json

README.md

bulk-hogan

Bulk-Hogan will search your directory structure for two kinds of folders, templates and modules. Then you can access compiled versions of your templates like

# renders /templates/home.html.mustache
templates.render 'home', { body: "body html" }, (err, html) ->
  throw err if err?
  console.log html

# renders /modules/footer/module.html.mustache
templates.render 'footer', {} (err, html) ->

# renders /modules/footer/links.html.mustache
templates.render 'footer_links', {} (err, html) ->

This is an early beta release. Use at your own risk etc.