small fixes to meta

This commit is contained in:
Christopher Olah
2017-01-09 10:27:37 -08:00
parent 59f60d025f
commit 9a99c0726f
2 changed files with 28 additions and 6 deletions
+18
View File
@@ -0,0 +1,18 @@
import fetch from "fetch";
let fetchUrl = fetch.fetchUrl
export default function(dom, data) {
var includeTags = [].slice.apply(dom.querySelectorAll("dt-include"));
includeTags.forEach(el => {
let src = el.getAttribute("src");
fetchUrl(src, (err, meta, body) => {
console.log(err, meta, body);
el.innerHTML = body.toString();
})
});
data.bibliography = bibliography;
data.citations = citations;
}