Explorar el Código

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 hace 6 años
padre
commit
5938104ba7
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. +0
    -1
      README.md

+ 0
- 1
README.md Ver fichero

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


Cargando…
Cancelar
Guardar