Adding more output options #90

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

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)' ]
improving javascript template generation by splitting the template-re…
…nderer functionality from the template itself

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment