File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ The module mapfile-ejs allows you to use [Embedded JavaScript (EJS)](http://ejs.
55## Installation
66
771 . Install ` Node.js ` and ` npm ` from [ https://nodejs.org/ ] ( https://nodejs.org/ )
8- 2 . Install ` mapfile-ejs ` with ` npm install mapfile-ejs --global `
8+ 2 . Install ` mapfile-ejs ` with ` npm install mapfile-ejs -g `
99
1010## Getting started
1111
@@ -43,15 +43,15 @@ import { render } from 'mapfile-ejs';
4343
4444(async () => {
4545 // render file with default options
46- const r1 = render (
47- ` ${ __dirname } /template__utf8.emap` ,
48- ` ${ __dirname } /template__utf8.map`
46+ await render (
47+ ` . /template__utf8.emap` ,
48+ ` . /template__utf8.map`
4949 );
5050
5151 // render file with custom options
52- render (
53- ` ${ __dirname } /template__iso_8859_1.emap` ,
54- ` ${ __dirname } /template__iso_8859_1__02.map` ,
52+ await render (
53+ ` . /template__iso_8859_1.emap` ,
54+ ` . /template__iso_8859_1__02.map` ,
5555 { inputEncoding: ` ISO-8859-1` , outputEncoding: ` ISO-8859-1` }
5656 );
5757})();
You can’t perform that action at this time.
0 commit comments