From 217c11ad22b6cf6a8a0a2a15b11be44dc0aeb88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=9A=D0=B0=D1=81=D0=B8?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= Date: Mon, 9 Sep 2019 21:11:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B0=D1=82=D1=82=D1=80=D0=B8=D0=B1=D1=83=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=B2=20=D0=BC=D0=B0=D0=BA=D1=80=D0=BE=D1=81?= =?UTF-8?q?=D0=B5=20b?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flatfilecms/templates/macros.jinja2 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/flatfilecms/templates/macros.jinja2 b/flatfilecms/templates/macros.jinja2 index 7b1adcd..712e6b1 100644 --- a/flatfilecms/templates/macros.jinja2 +++ b/flatfilecms/templates/macros.jinja2 @@ -1,8 +1,5 @@ -{% macro b(class=None, tag="div", id=None) -%} -<{{ tag }} -{%- if class is not none %} class="{{class}}" {%- endif -%} -{%- if id is not none %} id="{{id}}" {%- endif -%} -> +{% macro b(tag="div", attributes=None) -%} +<{{ tag }}{% if attributes %} {{attributes|safe}}{%endif%}{% for name, value in kwargs.items() %} {{name}}="{{value}}"{% endfor -%}> {%- if caller %} {{ caller() }} {% endif -%}