-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add Go template support #36
Comments
Hello and thank you for your helpful feedback! The problem that you can't just switch from confd is of course true.
it shouldn't be too hard to add go templates as a second template language, and i will probably do it, especially to ease the transition from confd.
I am also open for adding more standard filters if needed. |
More template engines - more thing to support. I.e. if you add custom filter (function in case of Go template) you need to add it to each engine where it missing from. |
I will stay with just pongo2 for now. |
Hello thanks for interesting alternative for confd. I think ability to have multiple backends is the 'killer feature'. Currently I need to have multiple Consul backends and in the future Vault will be added to the list but I would not want to be 'vendor locked' by using consul-template.
So I'm trying to switch from confd and during review of remco as candidate my main concern was different template engine. And after actually trying to adapt my templates from Go template to Django temple I can say that it takes a lot of effort. It took less than 2 hours to create new installation and configuration SaltStack formula for remco, but it took more than 4 hours to adapt simple Haproxy template from Go template to Django template.
Main problems with Django template:
{% with %}
can help, but because it is require end tag it's not very elegantreplace
filter like in Jinja2, norindex
from Go template, of course there is workaround available out-of-the box with this JavaScript custom filters, but for such basic things you can expect built-in toolsAnd main problem, you can't just switch from confd with some fixes here and there, you need to fully rewrite your templates. I think if Go template became available more people will happily switch to remco because it's flexibility is really impressive.
I understand that adding another template engine is not a piece of cake and probably overly complicate this tool and even more likely, it’s completely not required for you personally. So I won't really expect that Go template will be added it's just my thoughts and experience of using remco.
The text was updated successfully, but these errors were encountered: