-
Notifications
You must be signed in to change notification settings - Fork 296
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
Support string concatenation as an operator #222
Comments
The Jinja2 doc say the following:
Any idea why
Yeah, any work should be done on the 0.11 branch. It's mostly waiting for pest to release a stable version but it almost ready otherwise |
I feel totally OK with To be honest, I have no experience of Python / Django / Jinja2, so I have no idea why they discourage For Tera internals, if we use I understood about next version. I'll work on |
Hmm thinking about it we should maybe use |
@lettenj61 do you need help with that? |
@Keats Sorry for the late, I'm working on it but I couldn't get much time. I hope I can open a PR in a next few days. I agree with |
Let me know if you have any questions with |
I like to use this feature in a project that I am working on. @lettenj61, I saw that you recently picked this up with the string-concat2 branch. Can I assist in some way? |
@verpeteren That's the reason why I wanted this in tera, too! I'm working on adding |
I encountered another situation where I could use such a concatination operator. I've resolved to a workaround but it is not so nice. :-( @lettenj61: |
@lettenj61 Any progress? I'd like to include that feature in the next release if possible |
This would be a great feature to have! 👍 In my own string-concat2 branch, I've picked up where the original string-concat2 branch leaves off to see where I could get. If it helps, feel free to lift what's there or I'm happy to submit a PR to @lettenj61's fork or to the upstream. I'm new to Rust so I only barely know what I'm doing. 😄 |
Ok let's get that done! |
@Keats I've submitted the PR for your review and feedback. |
Hello, I love Tera and Gutenberg. They're awesome!
I'm writing a Gutenberg theme, and I found that it will be useful if Tera supports string concatenation as we can in Jinja2, but I wonder is it acceptable or not.
I'm thinking of a template something like:
I wrote some examples and unit tests on my fork, but I believe there's v0.11 coming so they may be outdated.
The text was updated successfully, but these errors were encountered: