3
0
Fork 0

fix: add render_grid_tag() as separate def block for index templates

sometimes caller needs to inject custom attrs to the grid tag
This commit is contained in:
Lance Edgar 2025-01-14 18:16:21 -06:00
parent 740110f87f
commit 0ddf4d2ab9

View file

@ -8,10 +8,14 @@
<%def name="page_content()"> <%def name="page_content()">
% if grid is not Undefined: % if grid is not Undefined:
${grid.render_vue_tag()} ${self.render_grid_tag()}
% endif % endif
</%def> </%def>
<%def name="render_grid_tag()">
${grid.render_vue_tag()}
</%def>
<%def name="render_vue_templates()"> <%def name="render_vue_templates()">
${parent.render_vue_templates()} ${parent.render_vue_templates()}
${self.render_vue_template_grid()} ${self.render_vue_template_grid()}