Skip to content

Instantly share code, notes, and snippets.

@peol
peol / hbs-handlebars.patch
Created September 19, 2012 13:00
hbs-handlebars.patch
--- Handlebars.js Wed Sep 19 14:47:36 2012
+++ handlebars-1.0.rc.1.js Wed Sep 19 14:47:40 2012
@@ -1,3 +1,4 @@
+(function () {
// lib/handlebars/base.js
var Handlebars = {};
@@ -93,6 +94,7 @@
Handlebars.log(context);
});
@peol
peol / gazer.js
Last active August 29, 2015 14:02
Autogenerate folders/files
var Gaze = require("gaze").Gaze;
var gaze = new Gaze("test_struct/**/*.js");
gaze.on("ready", function(watcher) {
this.watched(function(e, f) {
var files = [];
Object.keys(f).forEach(function(k) {
f[k].forEach(function(file) {
files.push(file);
});