#### 安裝
使用 NPM 安裝 EJS:
```
$ npm install ejs
```
#### 使用
通過 EJS 的一個模板字符串和一些數據,你可以很輕松的得到 HTML:
```javascript
var ejs = require('ejs'),
people = ['geddy', 'neil', 'alex'],
html = ejs.render('<%= people.join(", "); %>', {people: people});
```
#### 瀏覽器支持
從[最后版本](https://github.com/mde/ejs/releases/latest)下載一個瀏覽器使用的文件,并且通過 `script` 標簽使用:
```html
<script src="ejs.js"></script>
<script>
var people = ['geddy', 'neil', 'alex'],
html = ejs.render('<%= people.join(", "); %>', {people: people});
</script>
```