From 0ddf4d2ab9fe0e2d6cdb819595bb2ca08a3f9516 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 14 Jan 2025 18:16:21 -0600 Subject: [PATCH] fix: add `render_grid_tag()` as separate def block for index templates sometimes caller needs to inject custom attrs to the grid tag --- src/wuttaweb/templates/master/index.mako | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wuttaweb/templates/master/index.mako b/src/wuttaweb/templates/master/index.mako index bf32c6f..fbc87a3 100644 --- a/src/wuttaweb/templates/master/index.mako +++ b/src/wuttaweb/templates/master/index.mako @@ -8,10 +8,14 @@ <%def name="page_content()"> % if grid is not Undefined: - ${grid.render_vue_tag()} + ${self.render_grid_tag()} % endif +<%def name="render_grid_tag()"> + ${grid.render_vue_tag()} + + <%def name="render_vue_templates()"> ${parent.render_vue_templates()} ${self.render_vue_template_grid()}