Skip to content

Conversation

@5cript
Copy link
Member

@5cript 5cript commented Jan 13, 2026

Makes this possible:

render(
    body{reference = parent}(
        range(vec)
            .before(
                Nui::nil(),
                div{}("Prefix2")
            )
            .after(
                div{}("Postfix1"),
                div{}("Postfix2")
            ),
        [&vec](long long i, auto const& element) {
            return div{}(std::string{element});
        }
    )
);

Prefix elements cannot be rerendered with this implementation, except for when the complete range is rerendered.
This deficiency is accepted for now, because this fills a big feature gap.

@5cript 5cript merged commit c6f3089 into main Jan 20, 2026
18 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants