visionmedia/consolidate.js — pull request #16 by fatjonny (2012-04-03 21:51:39+00:00)
Title: Adding dust partial support

I was unsure if there was a better place to put this.

For dust partials to render properly they must be already in the cache or you must specify a dust.onLoad function. Without a dust.onLoad function specified if you try to use a partial you receive a "template not found" error.

This sets dust.onLoad as the read function so that if the partial is not already in the dust cache it will load it from disk and add it to the dust cache.