Fix scope order when importing partials with metadata.

Render error when importing wiki pages that do not exist.
这个提交存在于:
Chase Sterling 2016-08-09 21:45:07 -04:00
父节点 55e2ceccaa
当前提交 9a730a947e
共有 4 个文件被更改,包括 18 次插入34 次删除

查看文件

@ -8,22 +8,6 @@
</script>
<script src="{{ url_for('static', filename='js/editor.js') }}"></script>
{% if partials %}
<script>
$(function() {
{% for name, value in partials.items() %}
{% if name and value %}
try {
Handlebars.registerPartial({{ name|tojson|safe }}, {{ value|tojson|safe }});
} catch (e) {
// no data?
}
{% endif %}
{% endfor %}
});
</script>
{% endif %}
{% if config.get('COLLABORATION') %}
<script src="{{ url_for('static', filename='js/collaboration/main.js') }}"></script>
{% endif %}