Skip to content

Qute: why use fragments instead of hx-boost? #41114

Answered by mkouba
razshare asked this question in Q&A
Discussion options

You must be logged in to vote

I think that both the hx-boost and the fragments (the idea is described in this essay) have different use cases. It's not one or the other.

But then in again, a viewer in that same Quarkus Insight asked if fragments can be nested.
And that, to me, just sounds like crazy land to debug and probably to implement on your side as well.

I checked our tests, and found this one and another one. So yes, fragments can be nested. But again, you don't need to use it. It depends on your specific use case.

I'm just trying to understand a bit what the direction of Qute is, if it aims for simplicity or not.

It aims to as simple as possible, but not simpler 😉. In other words, it's always a trade-off b…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@razshare
Comment options

@mkouba
Comment options

Answer selected by razshare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/qute The template engine
2 participants