Replies: 4 comments 1 reply
-
/cc @mkouba (qute) |
Beta Was this translation helpful? Give feedback.
-
https://quarkus.io/guides/qute-reference#hidden-fragments-capture This should be what you are looking for 👆 It should work in includes since they are not isolated (AFAIK) |
Beta Was this translation helpful? Give feedback.
-
@jasondlee The end tag is actually optional for let/set, recently I sent a PR to clarify the docs: #48370. If missing then the section ends where the parent section ends. So if you have a template like:
|
Beta Was this translation helpful? Give feedback.
-
Thank you, all. I was out of town last week, but I plan to return to this shortly to confirm ("Trust, but verify", right? :) and will respond here accordingly. I'm 100% sure you're right, though... :P |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to make a global assignment (i.e., assign it at the top of a page, and it's valid for the whole page and its includes)? I've been migrating a lot of sites from Jekyll to quarkus-roq, which uses qute, and one thing I'm hitting (and handling poorly, probably) is finding an equivalent to liquids
assign
orcapture
. Qute supportslet
/set
, but that requires a closing/let
, and if you have multiple assignments (made at different times) or conditional assignments (e.g., if a = 1 then b = 2 else b = 3), things either get kind of ugly (with a bunch of nesting/indentation) or just can't be done.Does that make sense? Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions