jinja macros ━━━━━━━━━━━━ I am working on a page for htmx-patterns and I ran into a situation with lots of duplication. Especially when i am using tailwind I run into situations where... Date: April 7, 2024 I am working on a page for [4m[38;2;127;187;179mhtmx-patterns[0m <[38;2;122;132;120mhttps://htmx-patterns.waylonwalker.com[0m> and I ran into a situation with lots of duplication. Especially when i am using tailwind I run into situations where the duplication can get tedious to maintiain. The solution I found is macros. Now I can use the same code for all of my links, and call the macro to use it. [38;2;122;132;120m[code][0m {% macro link(id, text, boosted=false) -%} {{ text }} {%- endmacro %}