Open brian-c opened 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.
ect --commonjs template.ect > template.js
require('./template');
I bet folks who use AMD would be into an --amd flag, too.
--amd
Would such a pull request be accepted?
It'd be really really great to be able to do
ect --commonjs template.ect > template.js
and then be able torequire('./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?