Let tag_object take arbitrary extra attributes.

This commit is contained in:
voussoir 2020-09-27 12:14:33 -07:00
parent 78a3aa36a8
commit 08591a717b

View file

@ -38,6 +38,6 @@
{%- set innertext = innertext or tag.name -%} {%- set innertext = innertext or tag.name -%}
{%- set element = "a" if (link or onclick) else "span" -%} {%- set element = "a" if (link or onclick) else "span" -%}
<{{element}} {{make_attributes(class=class, title=title, href=href, onclick=onclick)|safe}}>{{innertext}}</{{element}}> <{{element}} {{make_attributes(class=class, title=title, href=href, onclick=onclick, **kwargs)|safe}}>{{innertext}}</{{element}}>
{{-''-}} {{-''-}}
{%- endmacro -%} {%- endmacro -%}