瀏覽代碼

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
沒有發現已知的金鑰在資料庫的簽署中 GPG Key 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;
});


Loading…
取消
儲存