Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
compile dust templates for use clientside
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

README.md

dusting

Recursively compiles a directory of dust.js templates into grouped .js files.

Dust templates in the root directory are compiled into a templates.js file. Templates in sub directories of the root are compiled into a file matching the full directory name (with dots replacing path separator). So all templates at sub/dir/*.dust would be compiled into sub.dir.js file.

installation

For use in other node projects:

npm install dusting

As a command line tool:

npm install dusting -g

usage

designed to be used synchronously:

var dusting = require('dusting');
dusting({
  source: <input>,
  output: <output>,
  // optionally rename the root `templates.js` file
  rootOutput: 'foo.js'
});

command line:

dusting <input> [output]
  • <source> path to a directory containing dust.js templates (*.dust).
  • [output] directory to write output to, defaults to cwd
Something went wrong with that request. Please try again.