From b55e908643dc2ef1a21c7a4b11559e1785985792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kiho=20=C2=B7=20Cham?= Date: Sat, 3 Mar 2018 14:01:18 +0800 Subject: [PATCH] doc(quickstart): more semantic and moment installation (#2154) --- docs/source/en/intro/quickstart.md | 12 ++++++++---- docs/source/zh-cn/intro/quickstart.md | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/docs/source/en/intro/quickstart.md b/docs/source/en/intro/quickstart.md index b1c6fe4f75..e2d2a68e84 100644 --- a/docs/source/en/intro/quickstart.md +++ b/docs/source/en/intro/quickstart.md @@ -199,13 +199,13 @@ This usually goes to the app/view directory. -
+
+ ``` @@ -329,6 +329,10 @@ For more information, cf. [Extensions](../basics/extend.md). In the case of view, we can just write a helper as an extension. +```bash +$ npm i moment --save +``` + ```js // app/extend/helper.js const moment = require('moment'); diff --git a/docs/source/zh-cn/intro/quickstart.md b/docs/source/zh-cn/intro/quickstart.md index 3cb7ea8c24..d2f9b2879f 100644 --- a/docs/source/zh-cn/intro/quickstart.md +++ b/docs/source/zh-cn/intro/quickstart.md @@ -185,13 +185,13 @@ exports.view = { -
+
+ ``` @@ -306,6 +306,10 @@ exports.news = { 在这里,我们可以使用 View 插件支持的 Helper 来实现: +```bash +$ npm i moment --save +``` + ```js // app/extend/helper.js const moment = require('moment');