1.0.1 • Published 9 years ago

dot-require v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

dot-require

NPM Version NPM Downloads

Node.js extension installer for doT templates

##Usage

require('dot-require').install();

Or with options:

require('dot-require').install({
    extension: '.dot',
    defines: {
        some_dot_compile_define: true
    },
    additionalTransform: function(src) {
        //do some transform
        return src;
    },
    templateSettings: {
        strip: false
    }
});

templateSettings defaults to doT.templateSettings, with partial defaults supported. For more information on templateSettings refere to the doT documentation.

extension defaults to .dot

And to uninstall:

require('dot-require').uninstall();

##Changelog

#####1.0.1

  • Accidentally a word
  • Removed unnecessary testing code

#####1.0.0

  • Initial release
1.0.1

9 years ago

1.0.0

9 years ago