WIP partial improvements

This commit is contained in:
Chase Sterling 2016-08-09 00:52:08 -04:00
parent 4a38e896eb
commit 55e1ed3a2b
6 changed files with 64 additions and 25 deletions

View file

@ -23,12 +23,7 @@
{% block js %}
<script>
$(function(){
{% if partials %}
{% for name, value in partials.items() %}
Handlebars.registerPartial({{ name|tojson|safe }}, {{ value.data|tojson|safe }});
{% endfor %}
{% endif %}
$("#page-content").html(MDR.convert({{ page.data|tojson|safe }})).show();
$("#page-content").html(MDR.convert({{ page.data|tojson|safe }}, {{ partials|tojson|safe }})).show();
});
</script>
{% endblock %}
{% endblock %}