Skip to content

Commit 5938104

Browse files
authored
Use fetched template in usage example
Blooper introduced when making the usage examples in README.md more modern a couple of days ago, where the example fetching the mustache template over HTTP, didn't in fact use the fetched template.
1 parent 3bdd27c commit 5938104

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ function renderHello() {
9292
fetch('template.mustache')
9393
.then((response) => response.text())
9494
.then((template) => {
95-
var template = document.getElementById('template').innerHTML;
9695
var rendered = Mustache.render(template, { name: 'Luke' });
9796
document.getElementById('target').innerHTML = rendered;
9897
});

0 commit comments

Comments
 (0)