{% load sekizai_tags %}
{% load static %}

{% addtoblock 'js' %}
  {% if INCLUDE_JS_MASONRY %}<script src="{% static 'djangocms_masonry/bower_components/masonry/dist/masonry.pkgd.min.js' %}"></script>{% endif %}
{% endaddtoblock %}

{% addtoblock 'js' %}
  <script>
    var msnry = new Masonry( '#plugin-{{ instance.pk }} .masonry-grid', {{ options }});
  </script>
{% endaddtoblock %}

{% block plugin %}{% endblock plugin %}
