Przeglądaj źródła

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.
tags/v4.0.0
Phillip Johnsen GitHub 6 lat temu
rodzic
commit
5938104ba7
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 0 dodań i 1 usunięć
  1. +0
    -1
      README.md

+ 0
- 1
README.md Wyświetl plik

@@ -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;
});


Ładowanie…
Anuluj
Zapisz