-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
}, | ||
"devDependencies": { | ||
"hogan.js": "^3.0.2", | ||
"json5": "^0.5.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these two be dependencies rather than devDependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! They are. The diff misled me. :)
Good catch on using Would you please:
|
@geoffp
|
FYI, neither Mustache nor Hogan has a native |
I'm trying to read the big PR that you linked to, but I only have so much time in a day for code review and I just can't get through it all in one sitting or even two. I also still don't have an example of the syntax you're trying to support. Having worked extensively on pattern parameters and style modifiers, how possible do you think it would be to move most of the machinery of dealing with them into the Mustache engine itself? They're not wanted or needed for other engines, and it adds a huge amount of complexity to the main app. |
In the links I provided, I highlighted the lines where
Maybe I'm not fully understanding what sort of example or explanation you want. Please do ask for more specifics if you want. I'll definitely give the proposal to make my changes Mustache-specific some thought. But in actuality, I think my changes are simplifying the main app, especially in regards to partial inclusion. If you look at the code statistics for pattern-lab/patternlab-node/pull/416 , I reduced the amount of code by 72 lines. I'm obviously more than compensating by increasing the amount of code in patternengine-node-mustache, but that's Mustache-specific. I tested my changes to the main app with the Handlebars engine, and it worked perfectly, with just a minor pr to patternengine-node-handlebars. |
Please see pattern-lab/patternlab-node#603 for an explanation of why I am closing this PR. |
Addresses pattern-lab/patternlab-node#250
Summary of changes: