tabi-lean/templates/macros/target_attribute.html
tzinm f47cefd42b
♻️ refactor: add "target_attribute" macro (#515)
Co-authored-by: Óscar <welpo@users.noreply.github.com>
2025-04-26 11:21:09 +02:00

11 lines
204 B
HTML

{% macro target_attribute(new_tab) %}
{%- set blank_target = "" -%}
{%- if new_tab -%}
{%- set blank_target = "target=_blank" -%}
{%- endif -%}
{{ blank_target }}
{% endmacro target_attribute %}