Skip to content

Instantly share code, notes, and snippets.

View nrstott's full-sized avatar

Nathan nrstott

  • Suture Health
  • Atlanta
View GitHub Profile
@nrstott
nrstott / bogart-jade-alternate.js
Created January 10, 2012 05:54 — forked from jdavisclark/bogart-jade-alternate.js
alternate bogart viewengine signature
var bogart = require('bogart')
, jade = require('jade')
, when = bogart.q.when;
require('bogart').viewEngine.addEngine('jade', function(read, cache, opts) {
return when(read(), function(tpl) {
var fn;
if(typeof tpl === "function") {
fn = tpl;