You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// is the configuration that exists in the configuration list
83
+
// modal 是配置列表中存在的配置
83
84
$ fp -r modal
84
85
```
85
86
86
-
#### need to pay attention to the input name
87
+
#### 最后输入名称需要注意
87
88
88
89
```javascript
89
90
$ input newpagename (index): a/entry
90
91
```
91
-
*this place will be as follows:
92
-
*when path2 already exist, `path a` will be spell into the path, but will not change file name, the name of configuration shall prevail(the follow-up to optimize)
*when path2 already exist, `path a` will be spell into the path, but will not change file name, the name of configuration shall prevail(the follow-up to optimize)
93
94
94
-
## 配置
95
+
## Configuration
95
96
96
-
`fastpage.config.js`示例:
97
+
`fastpage.config.js`sample:
97
98
98
99
```javascript
99
100
var config = {
100
101
page: {
101
-
tempPath:'template', //模板文件夹路径,相对于配置文件
102
+
tempPath:'template', //The template folder path, relative to the configuration file
102
103
list: [
103
104
{
104
-
key:'ftl', // 文件 key
105
-
path:'view', // 该文件生成路径,相对于配置文件
106
-
tempPath: ['index.ftl'], // 该文件模板路径,相对于模板文件夹的路径
107
-
name: ['index.ftl'] // 待生成文件的名字,tempPath & name 有多个的话,数组位置需对应
105
+
key:'ftl', // file key
106
+
path:'view', // This file generates the path relative to the configuration file
107
+
tempPath: ['index.ftl'], //The file template path relative to the template folder path
108
+
name: ['index.ftl'] // For the name of the generated file, tempPath & name has multiple
0 commit comments