gruntjs / grunt-contrib-jst

Compile underscore templates to JST file.
http://gruntjs.com/
MIT License
113 stars 45 forks source link

Add commonjs option #53

Open willdady opened 10 years ago

willdady commented 10 years ago

In addition to the amd option it would be great if there was a commonjs option, grunt-contrib-handlebars has this option and has an almost identical API to this.

This will allow the output to be 'required' in a Browserify/Node setup. Alternatively the ability to set the output file's header/footer would be good too.

SimonChong commented 10 years ago

+1

dbrugne commented 9 years ago

+1

fkereki commented 9 years ago

+1 - if you want to use this with TypeScript & Node, CommonJS is required.