{# Status -- These macros are designed for displaying highlighted pieces of text on any page which indicate a currect state of the page or particular piece of data/information on it. -------------------------------------------------------------------------------- {%- import "macros/status.html" as _status -%} -------------------------------------------------------------------------------- #} {# Tag -- A macro used for displaying a small status tag, often used inside of a dataset heading. -------------------------------------------------------------------------------- {{ _status.tag('Good', class='tag--success') }} -------------------------------------------------------------------------------- You can also pass any other HTML attribute using keyword arguments and these will be applied to the container. -------------------------------------------------------------------------------- {{ _status.tag( text='Good', class='tag--success', **{'data-some-attribute': 'Some value'} ) }} -------------------------------------------------------------------------------- #} {% macro tag(text=None, class=None) -%} {{ text }} {%- endmacro %}