Permalink
Browse files

Adding dust partial support

  • Loading branch information...
1 parent db9dcb2 commit 87a39c8f5b6dd10a1e477bfc6bda1924086b8266 @fatjonny fatjonny committed with tj Apr 3, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/consolidate.js
View
@@ -87,6 +87,10 @@ exports.jade = function(path, options, fn){
exports.dust = function(path, options, fn){
var engine = requires.dust || (requires.dust = require('dust'));
+
+ // get dust partials to read from disk rather than from the (initially empty) dust cache
+ engine.onLoad = function( path, callback ) { read( path, options, callback ); }
+
read(path, options, function(err, str) {
if (err) return fn(err);
try {

0 comments on commit 87a39c8

Please sign in to comment.