Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding more output options #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Adding more output options #90

wants to merge 1 commit into from

Conversation

arboleya
Copy link

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

…nderer functionality from the template itself
@joaomdmoura
Copy link

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants