From 5938104ba717a43dfd9e963dd67accdc1a526421 Mon Sep 17 00:00:00 2001 From: Phillip Johnsen Date: Mon, 13 Jan 2020 21:02:27 +0100 Subject: [PATCH] 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. --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 9c79082b7..a3e09aa99 100644 --- a/README.md +++ b/README.md @@ -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; });