From c3bf82c801b5d4c91f94f9184232559ed8dc5c9f Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Wed, 31 Jan 2024 21:28:11 -0800 Subject: [PATCH] Compact template tag html --- .../templates/reactpy/component.html | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/reactpy_django/templates/reactpy/component.html b/src/reactpy_django/templates/reactpy/component.html index e7ff1311..6b4ecc16 100644 --- a/src/reactpy_django/templates/reactpy/component.html +++ b/src/reactpy_django/templates/reactpy/component.html @@ -5,23 +5,23 @@ {% endif %} {% if not reactpy_failure %} -
+{% if reactpy_class %}
{% endif %} +{% if not reactpy_class %}
{% endif %} +{% if reactpy_prerender_html %}
{{reactpy_prerender_html|safe}}
{% endif %} +{% if reactpy_offline_html %}{% endif %} -{% if reactpy_prerender_html %}
{{ reactpy_prerender_html|safe }}
{% endif %} -{% if reactpy_offline_html %} -{% endif %} {% endif %}