Skip to content

Instantly share code, notes, and snippets.

handlebars : {
options : {
processAST: function(ast) {
var Handlebars = require('handlebars');
ast.statements.forEach(function(statement, i) {
if (statement.type === 'partial') {
var partialFile = grunt.util._.find(grunt.task.current.files, function (file) {
return file.src[0].indexOf(statement.partialName.name) !== -1;
});
if (partialFile) {
@zdk
zdk / git-merge-dry-run
Created July 9, 2013 03:19
When you need git merge --dry-run
git merge --no-commit --no-ff $BRANCH && git reset --hard HEAD
@eligrey
eligrey / outerHTML.js
Created June 24, 2011 02:56
Efficient outerHTML polyfill that doesn't use cloneNode(true)
/*
* outerHTML.js
* Cross-browser full HTMLElement.outerHTML implementation.
*
* 2011-11-14
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/