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 -2
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="utf8">
<script>
<script id='polyfills'>
// checks for webcomponents compatibility
if ('registerElement' in document &&
'import' in document.createElement('link') &&
@@ -13,7 +13,6 @@
// Platform does not support webcomponents--loading polyfills.
const scriptTag = document.createElement('script');
scriptTag.src = '../node_modules/webcomponents.js/webcomponents-lite.js';
scriptTag.src = '../node_modules/webcomponents.js/webcomponents-lite.js';
scriptTag.async = false;
document.currentScript.parentNode.insertBefore(scriptTag, document.currentScript.nextSibling);
}
@@ -38,7 +37,10 @@
<d-article>
<d-title>
<h1>Attention and Augmented Recurrent Neural Networks</h1>
<!-- <h2>Some people want a deck</h2> -->
<d-byline></d-byline>
</d-title>
<d-abstract>
<p>This is the first paragraph of the article. Test a long&thinsp;&mdash;&thinsp;dash -- here it is.</p>
</d-abstract>