diff --git a/README.md b/README.md index fae82d9..8d0ac8c 100644 --- a/README.md +++ b/README.md @@ -51,16 +51,16 @@ If you need a template for a dynamic part in a static website, you can consider
Loading...
- + ``` ```js function loadUser() { - var template = $('#template').val(); + var template = $('#template').html(); Mustache.parse(template); // optional, speeds up future uses var rendered = Mustache.render(template, {name: "Luke"}); $('#target').html(rendered);