-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 String concat in Qute when used as parameters #46246
Comments
/cc @mkouba (qute) |
Just a bit of context. The We might try to relax this requirement for virtual method params but even then Now, I do understand that the current situation is not ideal at all and we need to find a better way to handle this. So far we have I can imagine that something like Maybe a I know that all these are just workarounds but I'm trying to find an acceptable solution without breaking existing stuff 🤷.
I like the idea but it would have to be |
I think it's fine because you can do: |
It's not fine because it's inconsistent. You would be able to do |
@mkouba what's the point of doing: |
That's just an example. It could be some more complex formatting or whatever. |
What do you think about this consistent rule, make it works when you have parenthesis: and explain in the doc that we have this limitation/rule to limit conflicts with underlying syntaxes.. |
Description
Currently, this doesn't work:
{page.image('partenaires/' + partenaire.image) }
or
{page.image('partenaires/%s'.fmt(partenaire.image)}
It would be a very nice feature to make it intuitive for Java devs.
As discussed with @mkouba we could also introduce
eval:
to allow doing:{page.image(eval:'partenaires/{partenaire.image}'}
(which is pretty cool also)Implementation ideas
No response
The text was updated successfully, but these errors were encountered: