Skip to content

Instantly share code, notes, and snippets.

@MarcDiethelm
MarcDiethelm / lawg.js
Created September 11, 2012 20:32
Global development and debugging helper (browser)
/**
* Global development and debugging helper
* Author: Marc Diethelm
*/
(function() {
var w = window
,c
,concatArgs
@topliceanu
topliceanu / micro-mustache.js
Created December 30, 2011 04:22
John Resig's Micro Template with changed tags from <%=, %> into more mustache-esque {{= and }}
// Simple JavaScript Templating
// John Resig - http://ejohn.org/ - MIT Licensed
(function(){
var cache = {};
this.tmpl = function tmpl(str, data){
// Figure out if we're getting a template, or if we need to
// load the template - and be sure to cache the result.
var fn = !/\W/.test(str) ?
cache[str] = cache[str] ||