Skip to content

Conversation

@PetrDlouhy
Copy link
Contributor

This is my take on #305 - I tried to make the templates overridable in order for user to be able to add |safe easily.

I don't need this solution now, because my menu_bootstrap5.html template is too far from the original anyway. But other users might appreciate this.

I did include some documentation.

@idlesign What do you think of this? Do you want this approach or do you want to choose something different?

@PetrDlouhy PetrDlouhy changed the title Pr/overridable templates overridable templates to allow html Jul 22, 2025
@idlesign
Copy link
Owner

Hi.

Seems ok, yet I wonder how heavy this change is. That is, how does adding blocks affect rendering performance on big menus. Any insights?

Another thought: what if we did it with marking safe in items hook?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants