A node script that compiles dust files in an input directory to an output directory


Compile dust files in a directory to an output directory

Usage: node DustjsCompile.js uncompiledDirectory compiledDirectory [concatFile]

If you have the following file structure


Your usage would be:

node dustjscompile /public/templates/ /public/compiledTemplates/

If you want to have all of the compiled templates concatenated into a single file , pass a 3 parameter:

node dustjscompile /public/templates/ /public/compiledTempates/ /public/bundle.js

This will create 'bundle.js'