Remove mustache/handlebars dependency by switching to ES6 template literals

This commit is contained in:
Ludwig Schubert
2017-08-09 16:47:35 -07:00
parent 9fe826447b
commit 07c7527734
10 changed files with 98 additions and 760 deletions
+4 -3
View File
@@ -106,6 +106,9 @@ export const Controller = {
const appendix = document.querySelector('distill-appendix');
appendix.frontMatter = frontMatter;
const byline = document.querySelector('d-byline');
byline.frontMatter = frontMatter;
},
DOMContentLoaded(event) {
@@ -113,9 +116,7 @@ export const Controller = {
const frontMatterTag = document.querySelector('d-front-matter');
const data = frontMatterTag.parse();
frontMatter.mergeFromYMLFrontmatter(data);
const appendix = document.querySelector('distill-appendix');
appendix.frontMatter = frontMatter;
Controller.listeners.onFrontMatterChanged({detail: data});
console.debug('Resolving "citations" dependency due to initial DOM load.');
frontMatter.citations = collectCitations();