Skip to content

Instantly share code, notes, and snippets.

View tyler-johnson's full-sized avatar

Tyler Johnson tyler-johnson

View GitHub Profile
@tyler-johnson
tyler-johnson / handlebar-dir-precompile.js
Last active December 14, 2015 10:29
Simple directory watch and handlebar template precompile.
// DEPENDENCIES
var path = require('path'),
fs = require('fs'),
watch = require('watch'),
Handlebars = require('handlebars'),
glob = require("glob"),
_ = require('underscore');
// MAIN VARS
var exts = [ ".hbs" ],