-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Allow template type per template #58
Comments
This was referenced Jun 6, 2018
No, the syntax won't change. For example, for mako, they will be:
No changes to jinja based syntax. of course, it will have a dependency: moban-mako exists and is installed in current python environment. |
chfw
added a commit
that referenced
this issue
Jun 11, 2018
* ✨ choose a template based on its file extension. fix #43 * 📚 update change log * 🐛 fix the template names * 📚 udpate readme * ✨ default template engine will be jinja2 if template type(file extension) cannot be found * 👕 address review feedback. #61 * 🎨 keep cli --template_type option * ✨ allow template_type in moban file to indicate default template engine. i.e. if unknown template type(file suffix) is found, the default template engine is used. So if mako engine is specified via template_type, an unknown template file such as strange.template will be rendered by mako engine * ✨ allow jinja2 become template suffix too, meaning a.jj2 and b.jinja2 will be rendered by the same engine. however, for now, the engine instance will not be the same. later on, this can be consolidated * 📚 update change log. #58 * ✨ associate jinja2 engine with more file types, j2, jinja and retore the default template engine name as jinja2 * 📚 documentation update
I am cleaning my to-do list so closing issues that are to be delivered. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently
template_type
can only appear at:While that default is ok, it should be possible to override it per template.
e.g.
The text was updated successfully, but these errors were encountered: