소스 검색

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 년 전
부모
커밋
5938104ba7
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. +0
    -1
      README.md

+ 0
- 1
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;
});


불러오는 중...
취소
저장