Skip to content

Commit

Permalink
Use fetched template in usage example
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phillipj committed Jan 13, 2020
1 parent 3bdd27c commit 5938104
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ function renderHello() {
fetch('template.mustache')
.then((response) => response.text())
.then((template) => {
var template = document.getElementById('template').innerHTML;
var rendered = Mustache.render(template, { name: 'Luke' });
document.getElementById('target').innerHTML = rendered;
});
Expand Down

0 comments on commit 5938104

Please sign in to comment.