coffeekup icon indicating copy to clipboard operation
coffeekup copied to clipboard

Adding more output options

Open arboleya opened this issue 13 years ago • 1 comments

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)' ]

arboleya avatar Oct 26 '11 01:10 arboleya

Thanks nybras. I was looking for exactly that! It's really useful, and keep my templates clean ;)

joaomdmoura avatar Oct 26 '11 16:10 joaomdmoura