1.1.0 • Published 10 years ago
duster v1.1.0
duster
Prime the dust.cache
Single location:
var duster = require('duster');
duster.prime(/* path to parent directory of templates */, function(err) {
// duster.dust.cache now populated
});
Multiple locations:
var duster = require('duster');
duster.prime([{
path: 'path to parent directory of templates',
namespace: 'template name prefix'
}], function(err) {
// duster.dust.cache now populated
});