WIP partial improvements
This commit is contained in:
parent
4a38e896eb
commit
55e1ed3a2b
6 changed files with 64 additions and 25 deletions
|
@ -14,7 +14,7 @@
|
|||
{% for name, value in partials.items() %}
|
||||
{% if name and value %}
|
||||
try {
|
||||
Handlebars.registerPartial({{ name|tojson|safe }}, {{ value.data|tojson|safe }});
|
||||
Handlebars.registerPartial({{ name|tojson|safe }}, {{ value|tojson|safe }});
|
||||
} catch (e) {
|
||||
// no data?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue