Skip to content

Commit

Permalink
doc: fix view config doc (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
xcodebuild authored and atian25 committed Jun 8, 2017
1 parent 52865b4 commit c6eb7b2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
17 changes: 12 additions & 5 deletions docs/source/en/intro/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,18 @@ exports.nunjucks = {

```js
// config/config.default.js
exports.view = {
defaultViewEngine: 'nunjucks',
mapping: {
'.tpl': 'nunjucks',
},
module.exports = appInfo => {
const config = {};
config.keys = appInfo.name + '...';

// add config
config.view = {
defaultViewEngine: 'nunjucks',
mapping: {
'.tpl': 'nunjucks',
},
}
return config;
};
```

Expand Down
17 changes: 12 additions & 5 deletions docs/source/zh-cn/intro/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,18 @@ exports.nunjucks = {

```js
// config/config.default.js
exports.view = {
defaultViewEngine: 'nunjucks',
mapping: {
'.tpl': 'nunjucks',
},
module.exports = appInfo => {
const config = {};
config.keys = appInfo.name + '...';

// 娣诲姞閰嶇疆
config.view = {
defaultViewEngine: 'nunjucks',
mapping: {
'.tpl': 'nunjucks',
},
}
return config;
};
```

Expand Down

0 comments on commit c6eb7b2

Please sign in to comment.