app-proto-recipes
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "app-proto-recipes", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Read the specification of directories (for app-proto scaffold).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -61,3 +61,4 @@ 'use strict'; | ||
tpls: ctx.$tpls, | ||
page: ctx.$pages[page] | ||
page: ctx.$pages[page], | ||
key: page | ||
}); | ||
@@ -64,0 +65,0 @@ |
@@ -28,2 +28,3 @@ import path from 'path' | ||
page: ctx.$pages[page], | ||
key: page, | ||
}) | ||
@@ -30,0 +31,0 @@ ctx.body = tpl.toHtml() |
@@ -9,2 +9,3 @@ // @notice 此文件在Node端也会执行(如果涉及Isomorphism 则在此文件中引入前端模块的内容) | ||
this.page = tplParams.page || null | ||
this.key = tplParams.key || null | ||
} | ||
@@ -11,0 +12,0 @@ |
@@ -34,1 +34,2 @@ import fs from 'fs' | ||
} | ||
@@ -21,2 +21,3 @@ 'use strict'; | ||
this.page = tplParams.page || null; | ||
this.key = tplParams.key || null; | ||
} | ||
@@ -23,0 +24,0 @@ |
712431
619