Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding dust partial support

  • Loading branch information...
commit 87a39c8f5b6dd10a1e477bfc6bda1924086b8266 1 parent db9dcb2
@fatjonny fatjonny authored tj committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/consolidate.js
View
4 lib/consolidate.js
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.