bones-cli 0.0.2 → 0.0.4

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 CHANGED
@@ -78,7 +78,7 @@ var bfinit = function() {
78
78
  fs.writeFileSync(dest, updatedContent);
79
79
 
80
80
  src = 'page-template/page.js.tmpl';
81
- dest = 'pages/page-home/page-home-route.js';
81
+ dest = 'pages/page-home/client/page-home-route.js';
82
82
  var templateContent = fs.readFileSync(`${__dirname}/${src}`);
83
83
  var updatedContent = templateContent.toString().replace(/TEMPLATE_NAME_GOES_HERE/g, 'pageHome');
84
84
  updatedContent = updatedContent.replace(/PAGE_PATH_GOES_HERE/g, '/');
@@ -105,7 +105,7 @@ var bfinit = function() {
105
105
  fs.writeFileSync(dest, updatedContent);
106
106
 
107
107
  src = 'page-template/page.js.tmpl';
108
- dest = 'pages/page-2/page-2-route.js';
108
+ dest = 'pages/page-2/client/page-2-route.js';
109
109
  var templateContent = fs.readFileSync(`${__dirname}/${src}`);
110
110
  var updatedContent = templateContent.toString().replace(/TEMPLATE_NAME_GOES_HERE/g, 'page2');
111
111
  updatedContent = updatedContent.replace(/PAGE_PATH_GOES_HERE/g, '/page/2');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bones-cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Command line tools for Bones - a rapid development framework for web apps with MeteorJS & Blaze templates",
5
5
  "keywords": [
6
6
  "cli",
@@ -1 +1,14 @@
1
+ import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
1
2
 
3
+ // DISABLE QUERY STRING COMPATIBILITY
4
+ // WITH OLDER FlowRouter AND Meteor RELEASES
5
+ FlowRouter.decodeQueryParamsOnce = true;
6
+
7
+ FlowRouter.route('PAGE_PATH_GOES_HERE', {
8
+ name: 'page1',
9
+ action() {
10
+ // Render a template using Blaze
11
+ this.render('layout', 'TEMPLATE_NAME_GOES_HERE');
12
+ console.log('TEMPLATE_NAME_GOES_HERE template rendered.');
13
+ }
14
+ });
File without changes
File without changes
File without changes
File without changes