Comparing version 1.0.14 to 1.0.15
@@ -49,3 +49,4 @@ var Mangony = require('./index'); | ||
devServer: { | ||
start: true | ||
start: true, | ||
port: 3001 | ||
} | ||
@@ -52,0 +53,0 @@ }); |
@@ -132,2 +132,7 @@ /** | ||
if (this.options.YFMLayout && pageData.publish === false) { | ||
console.info(chalk.yellow('File ' + chalk.cyan(obj.page.filename) + ' is not generated!')); | ||
return; | ||
} | ||
if (this.options.YFMLayout && globalData.__layouts && pageData.layout) { | ||
@@ -134,0 +139,0 @@ if (!globalData.__layouts[pageData.layout]) { |
{ | ||
"name": "mangony", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Yet another static site generator in NodeJS focussed on being fast and simple. Mangony fulfills just one task: It takes handlebars templates and compiles them to an output directory.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -325,7 +325,2 @@ <h1 align="center"> | ||
### <2.0.0 | ||
In the current release (<2.0.0) the following things are missing and will be integrated in the near future: | ||
- YAML as data files | ||
### >=2.0.0 | ||
@@ -332,0 +327,0 @@ |
@@ -19,5 +19,5 @@ { | ||
"a", | ||
"c", | ||
"b", | ||
"d", | ||
"c" | ||
"d" | ||
] | ||
@@ -83,9 +83,10 @@ }, | ||
"serverFile": "globals/test-partial", | ||
"raw": "---\r\ntestPartial: test partial\r\ncontextData: a\r\nlayout: \"lyt-docu\"\r\n---\r\n{{! ---\r\ngeneral: s-tester\r\n============================================\r\n\r\nRequirements:\r\n- (only hbs)\r\n\r\nOptions:\r\n- testerClasses {String} - Modifier classes\r\n\r\nImportant Notes:\r\n\r\n--- }}\r\n<div class=\"s-tester{{#if testerClasses}} {{testerClasses}}{{/if}}\"\r\n data-js-module=\"tester\"\r\n data-js-options=\"{ "test": "testing"}\">\r\n\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n\t<strong>\r\n\t\t{{a}}\r\n\t</strong>\r\n</div>\r\n", | ||
"raw": "---\r\ntestPartial: test partial\r\ncontextData: a\r\nlayout: \"lyt-docu\"\r\npublish: false\r\n---\r\n{{! ---\r\ngeneral: s-tester\r\n============================================\r\n\r\nRequirements:\r\n- (only hbs)\r\n\r\nOptions:\r\n- testerClasses {String} - Modifier classes\r\n\r\nImportant Notes:\r\n\r\n--- }}\r\n<div class=\"s-tester{{#if testerClasses}} {{testerClasses}}{{/if}}\"\r\n data-js-module=\"tester\"\r\n data-js-options=\"{ "test": "testing"}\">\r\n\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n\t<strong>\r\n\t\t{{a}}\r\n\t</strong>\r\n</div>\r\n", | ||
"parsed": { | ||
"orig": "---\r\ntestPartial: test partial\r\ncontextData: a\r\nlayout: \"lyt-docu\"\r\n---\r\n{{! ---\r\ngeneral: s-tester\r\n============================================\r\n\r\nRequirements:\r\n- (only hbs)\r\n\r\nOptions:\r\n- testerClasses {String} - Modifier classes\r\n\r\nImportant Notes:\r\n\r\n--- }}\r\n<div class=\"s-tester{{#if testerClasses}} {{testerClasses}}{{/if}}\"\r\n data-js-module=\"tester\"\r\n data-js-options=\"{ "test": "testing"}\">\r\n\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n\t<strong>\r\n\t\t{{a}}\r\n\t</strong>\r\n</div>\r\n", | ||
"orig": "---\r\ntestPartial: test partial\r\ncontextData: a\r\nlayout: \"lyt-docu\"\r\npublish: false\r\n---\r\n{{! ---\r\ngeneral: s-tester\r\n============================================\r\n\r\nRequirements:\r\n- (only hbs)\r\n\r\nOptions:\r\n- testerClasses {String} - Modifier classes\r\n\r\nImportant Notes:\r\n\r\n--- }}\r\n<div class=\"s-tester{{#if testerClasses}} {{testerClasses}}{{/if}}\"\r\n data-js-module=\"tester\"\r\n data-js-options=\"{ "test": "testing"}\">\r\n\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n\t<strong>\r\n\t\t{{a}}\r\n\t</strong>\r\n</div>\r\n", | ||
"data": { | ||
"testPartial": "test partial", | ||
"contextData": "a", | ||
"layout": "lyt-docu" | ||
"layout": "lyt-docu", | ||
"publish": false | ||
}, | ||
@@ -128,9 +129,10 @@ "content": "\r\n{{! ---\r\ngeneral: s-tester\r\n============================================\r\n\r\nRequirements:\r\n- (only hbs)\r\n\r\nOptions:\r\n- testerClasses {String} - Modifier classes\r\n\r\nImportant Notes:\r\n\r\n--- }}\r\n<div class=\"s-tester{{#if testerClasses}} {{testerClasses}}{{/if}}\"\r\n data-js-module=\"tester\"\r\n data-js-options=\"{ "test": "testing"}\">\r\n\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n\t<strong>\r\n\t\t{{a}}\r\n\t</strong>\r\n</div>\r\n" | ||
"serverFile": "globals/test-partial", | ||
"raw": "---\r\ntestPartial: test partial\r\ncontextData: a\r\nlayout: \"lyt-docu\"\r\n---\r\n{{! ---\r\ngeneral: s-tester\r\n============================================\r\n\r\nRequirements:\r\n- (only hbs)\r\n\r\nOptions:\r\n- testerClasses {String} - Modifier classes\r\n\r\nImportant Notes:\r\n\r\n--- }}\r\n<div class=\"s-tester{{#if testerClasses}} {{testerClasses}}{{/if}}\"\r\n data-js-module=\"tester\"\r\n data-js-options=\"{ "test": "testing"}\">\r\n\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n\t<strong>\r\n\t\t{{a}}\r\n\t</strong>\r\n</div>\r\n", | ||
"raw": "---\r\ntestPartial: test partial\r\ncontextData: a\r\nlayout: \"lyt-docu\"\r\npublish: false\r\n---\r\n{{! ---\r\ngeneral: s-tester\r\n============================================\r\n\r\nRequirements:\r\n- (only hbs)\r\n\r\nOptions:\r\n- testerClasses {String} - Modifier classes\r\n\r\nImportant Notes:\r\n\r\n--- }}\r\n<div class=\"s-tester{{#if testerClasses}} {{testerClasses}}{{/if}}\"\r\n data-js-module=\"tester\"\r\n data-js-options=\"{ "test": "testing"}\">\r\n\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n\t<strong>\r\n\t\t{{a}}\r\n\t</strong>\r\n</div>\r\n", | ||
"parsed": { | ||
"orig": "---\r\ntestPartial: test partial\r\ncontextData: a\r\nlayout: \"lyt-docu\"\r\n---\r\n{{! ---\r\ngeneral: s-tester\r\n============================================\r\n\r\nRequirements:\r\n- (only hbs)\r\n\r\nOptions:\r\n- testerClasses {String} - Modifier classes\r\n\r\nImportant Notes:\r\n\r\n--- }}\r\n<div class=\"s-tester{{#if testerClasses}} {{testerClasses}}{{/if}}\"\r\n data-js-module=\"tester\"\r\n data-js-options=\"{ "test": "testing"}\">\r\n\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n\t<strong>\r\n\t\t{{a}}\r\n\t</strong>\r\n</div>\r\n", | ||
"orig": "---\r\ntestPartial: test partial\r\ncontextData: a\r\nlayout: \"lyt-docu\"\r\npublish: false\r\n---\r\n{{! ---\r\ngeneral: s-tester\r\n============================================\r\n\r\nRequirements:\r\n- (only hbs)\r\n\r\nOptions:\r\n- testerClasses {String} - Modifier classes\r\n\r\nImportant Notes:\r\n\r\n--- }}\r\n<div class=\"s-tester{{#if testerClasses}} {{testerClasses}}{{/if}}\"\r\n data-js-module=\"tester\"\r\n data-js-options=\"{ "test": "testing"}\">\r\n\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n\t<strong>\r\n\t\t{{a}}\r\n\t</strong>\r\n</div>\r\n", | ||
"data": { | ||
"testPartial": "test partial", | ||
"contextData": "a", | ||
"layout": "lyt-docu" | ||
"layout": "lyt-docu", | ||
"publish": false | ||
}, | ||
@@ -175,2 +177,5 @@ "content": "\r\n{{! ---\r\ngeneral: s-tester\r\n============================================\r\n\r\nRequirements:\r\n- (only hbs)\r\n\r\nOptions:\r\n- testerClasses {String} - Modifier classes\r\n\r\nImportant Notes:\r\n\r\n--- }}\r\n<div class=\"s-tester{{#if testerClasses}} {{testerClasses}}{{/if}}\"\r\n data-js-module=\"tester\"\r\n data-js-options=\"{ "test": "testing"}\">\r\n\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n\t<strong>\r\n\t\t{{a}}\r\n\t</strong>\r\n</div>\r\n" | ||
}, | ||
"c": { | ||
"c": "c" | ||
}, | ||
"b": { | ||
@@ -181,6 +186,3 @@ "b": "b" | ||
"d": "d" | ||
}, | ||
"c": { | ||
"c": "c" | ||
} | ||
} |
@@ -10,8 +10,8 @@ { | ||
"C:\\xampp\\htdocs\\mangony\\test\\fixtures\\partials\\**\\*.hbs": [], | ||
"C:\\xampp\\htdocs\\mangony\\test\\fixtures\\partials\\utilities": [ | ||
"test-yield.hbs" | ||
], | ||
"C:\\xampp\\htdocs\\mangony\\test\\fixtures\\partials\\globals": [ | ||
"test-partial.hbs" | ||
], | ||
"C:\\xampp\\htdocs\\mangony\\test\\fixtures\\partials\\utilities": [ | ||
"test-yield.hbs" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101075
51
2646
331