bones-cli 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
- package/page-template/page.js.tmpl +1 -1
package/index.js
CHANGED
|
@@ -232,7 +232,7 @@ var bfpage = function() {
|
|
|
232
232
|
fs.writeFileSync(dest, updatedContent);
|
|
233
233
|
|
|
234
234
|
src = 'page-template/page.js.tmpl';
|
|
235
|
-
dest = `pages/${fileName}/${fileName}.js`;
|
|
235
|
+
dest = `pages/${fileName}/client/${fileName}-route.js`;
|
|
236
236
|
var templateContent = fs.readFileSync(`${__dirname}/${src}`);
|
|
237
237
|
var updatedContent = templateContent.toString().replace(/TEMPLATE_NAME_GOES_HERE/g, componentName);
|
|
238
238
|
updatedContent = updatedContent.replace(/PAGE_PATH_GOES_HERE/g, pagePath);
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
|
|
|
5
5
|
FlowRouter.decodeQueryParamsOnce = true;
|
|
6
6
|
|
|
7
7
|
FlowRouter.route('PAGE_PATH_GOES_HERE', {
|
|
8
|
-
name: '
|
|
8
|
+
name: 'TEMPLATE_NAME_GOES_HERE',
|
|
9
9
|
action() {
|
|
10
10
|
// Render a template using Blaze
|
|
11
11
|
this.render('layout', 'TEMPLATE_NAME_GOES_HERE');
|