Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
huangxiaolu committed Mar 27, 2017
1 parent 757b372 commit 5cdcf23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -21,7 +21,7 @@ const ejs = require('think-view-ejs');
exports.view = {
type: 'ejs',
ejs: {
//options
//options
handle: ejs,
beforeRender: (ejs, config) => {
//do something before render the template.
Expand All @@ -48,9 +48,9 @@ You can override it and add other options by editing file `src/config/adapter.j
exports.view = {
type: 'ejs',
ejs: {
//override `cache` option
cache: false,
root: '/public/path',
//override `cache` option
cache: false,
root: '/public/path',
handle: ejs,
beforeRender: (ejs, config) => {
//do something before render the template.
Expand Down

0 comments on commit 5cdcf23

Please sign in to comment.