Fix scope order when importing partials with metadata.
Render error when importing wiki pages that do not exist.
This commit is contained in:
parent
55e2ceccaa
commit
9a730a947e
4 changed files with 18 additions and 34 deletions
|
@ -96,9 +96,9 @@ var MDR = {
|
|||
this.md = doc.md;
|
||||
var meta = this.meta = {};
|
||||
if (this.partials) {
|
||||
$.each(this.partials, function(key, value) {
|
||||
var doc = metaMarked(value);
|
||||
Handlebars.registerPartial(key, doc.md);
|
||||
$.each(this.partials, function(index, item) {
|
||||
var doc = metaMarked(item[1]);
|
||||
Handlebars.registerPartial(item[0], doc.md);
|
||||
$.extend(meta, doc.meta);
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue