{% macro wire_frame(id, initial=None, on_events=None, error_text='Failed to fetch data', loader_text='Loading data', frame_classes=None, error_classes=None, loader_classes=None) %}
{% if loader_text %}{{ loader_text }}{% endif %}
{% if error_text %}{{ error_text }}{% endif %}
{% endmacro %} {% macro wire_trigger(target, source, text, persist=False, extra_classes=None) %} {{ text }} {% endmacro %} {% macro wire_mutation(target=None, events=None) %} wire:mutate {% if target %}wire:target="{{ target }}"{% elif events %}wire:event="{{ events|join(',') }}"{% endif %} {% endmacro %}