-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[Qute] Allow nested content for user defined tags #10652
[Qute] Allow nested content for user defined tags #10652
Conversation
Can someone explain me or correct the PR to have a better (reactive) way than using a StringBuilder to manage the MultiNode results to inject into the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note that this will need to be squashed before merging.
@mkouba could you have a look at that one?
@jlannoy Could you pls describe your use case a little bit more? At least the expected output of your snippet would be helpful. I'm not sure I'm following... |
The expected output is : <div class="large div">
<b>Hello !</b>
</div> It's like the different section tags you can define in the
Some other libraries don't allow it, like Velocity ( |
Now I finally undestand! ;-) I think it's a nice feature. The only thing I'm not quite sure about is the name of the key. |
independent-projects/qute/core/src/main/java/io/quarkus/qute/UserTagSectionHelper.java
Outdated
Show resolved
Hide resolved
For the name of the key, I used |
@jlannoy I think that the current version is OK. Would you care to review my changes? |
Ok for me. Thank your for your help with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks cool!
Guillaume's comments should be addressed now.
Hello.
Here is a first PR for a quick modification in Qute.
It will allow nested content in user defined tags. For a simple example, if I defined
tags\my-tag.html
as this :I can then call it this way :
nested
being a special key asit
already is.