Renaming and adding two configs

This commit is contained in:
Shan Carter
2017-03-01 09:35:06 -08:00
parent a1651d2195
commit 8807bb1778
43 changed files with 1131 additions and 8630 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;
}