Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
prime a dust.cache
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
gulp
test/src
.eslintrc
.gitignore
.jsbeautifyrc
.travis.yml
LICENSE
README.md
gulpfile.js
index.js
package.json

README.md

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
});
Something went wrong with that request. Please try again.