fix: remove nested Jinja comments in dropdowns.html

Nested {# ... #} comments inside the docstring were breaking
the outer comment block, causing 'dropdown' is undefined error
when rendering the components page.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-21 21:24:25 +01:00
parent 375a0a0ed7
commit f2bb64cc10

View File

@@ -4,20 +4,20 @@
Reusable dropdown menu components with Alpine.js integration. Reusable dropdown menu components with Alpine.js integration.
Usage: Usage:
{% from 'shared/macros/dropdowns.html' import dropdown, dropdown_menu, context_menu %} from 'shared/macros/dropdowns.html' import dropdown, dropdown_menu, context_menu
{# Basic dropdown #} Basic dropdown:
{% call dropdown('Actions', 'isDropdownOpen') %} call dropdown('Actions', 'isDropdownOpen')
{{ dropdown_item('Edit', 'edit()', icon='pencil') }} dropdown_item('Edit', 'edit()', icon='pencil')
{{ dropdown_item('Delete', 'delete()', icon='trash', variant='danger') }} dropdown_item('Delete', 'delete()', icon='trash', variant='danger')
{% endcall %} endcall
{# Context menu (3-dot icon) #} Context menu (3-dot icon):
{% call context_menu('itemMenu', 'isMenuOpen') %} call context_menu('itemMenu', 'isMenuOpen')
{{ dropdown_item('View', 'view()') }} dropdown_item('View', 'view()')
{{ dropdown_divider() }} dropdown_divider()
{{ dropdown_item('Delete', 'delete()', variant='danger') }} dropdown_item('Delete', 'delete()', variant='danger')
{% endcall %} endcall
#} #}