From 39238a44d663c18b8315985570e00c0c30c6510d Mon Sep 17 00:00:00 2001 From: s2 Date: Sun, 14 Apr 2019 18:38:32 +0200 Subject: [PATCH] typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8bcdc12..f49027f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ```html ``` -2. Creare a file with your template, for example `templates/hello-world.ejs` containing `hello <%= name %>!` +2. Create a file with your template, for example `templates/hello-world.ejs` containing `hello <%= name %>!` 3. Render the remote template: ```js someDomelement.outerHTML = ejs.rr('templates/hello-world.ejs', {name: 'Simon'}); @@ -28,5 +28,5 @@ The resulting ejs template function is cached, so the second time this function ### ejs.preloadTemplate(templateUrl) -Since `ejs.rr` is async, you can call `ejs.preloadTemplate` before invoking `ejs.rr` to warm the template chace up for that `templateUrl`. +Since `ejs.rr` is async, you can call `ejs.preloadTemplate` before invoking `ejs.rr` to warm the template cache up for that `templateUrl`. By doing so the call to `ejs.rr` will return the rendered template string right away.