baryshev / ect

Fastest JavaScript template engine with embedded CoffeeScript syntax
http://ectjs.com
MIT License
626 stars 69 forks source link

CommonJS modularize output #68

Open brian-c opened 10 years ago

brian-c commented 10 years ago

It'd be really really great to be able to do ect --commonjs template.ect > template.js and then be able to require('./template'); and get a function.

I bet folks who use AMD would be into an --amd flag, too.

Would such a pull request be accepted?