coffeekup
coffeekup copied to clipboard
Adding more output options
When you need to export more than one tempalte to js, you probably want to separate the renderer logic from the template itself instead of embedding it in every template, making your output file bigger.
This patch adds two news options to the cli:
- ['--js', 'compile template to js function']
+ ['-j', '--js', 'compile template to js function (template + embedded renderer)']
+ ['-b', '--bare', 'use with -j to compile template to js (template only)' ]
+ ['-c', '--core', 'use with -j to compile renderer to js (renderer only)' ]
Thanks nybras. I was looking for exactly that! It's really useful, and keep my templates clean ;)