Let tag_object take arbitrary extra attributes.
This commit is contained in:
parent
78a3aa36a8
commit
08591a717b
1 changed files with 1 additions and 1 deletions
|
@ -38,6 +38,6 @@
|
|||
{%- set innertext = innertext or tag.name -%}
|
||||
{%- 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 -%}
|
||||
|
|
Loading…
Reference in a new issue