Skip to content

Commit b481e22

Browse files
committed
feat(edition-node): switch to engine-handlebars
BREAKING CHANGE: use handlebars over mustache
1 parent 384d2cf commit b481e22

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

packages/edition-node/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This Edition comes with the following components:
1515

1616
* `@pattern-lab/core`: [GitHub](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core) | [npm](https://www.npmjs.com/package/@pattern-lab/core)
1717
* `@pattern-lab/cli`: [GitHub](https://github.com/pattern-lab/tree/master/packages/cli) | [npm](https://www.npmjs.com/package/@pattern-lab/cli)
18-
* `@pattern-lab/engine-mustache`: [GitHub](https://github.com/pattern-lab/tree/master/packages/engine-mustache) | [npm](https://www.npmjs.com/package/@pattern-lab/engine-mustache)
18+
* `@pattern-lab/engine-handlebars`: [GitHub](https://github.com/pattern-lab/tree/master/packages/engine-handlebars) | [npm](https://www.npmjs.com/package/@pattern-lab/engine-handlebars)
1919
* `@pattern-lab/uikit-workshop`: [GitHub](https://github.com/pattern-lab/tree/master/packages/uikit-workshop) | [npm](https://www.npmjs.com/package/@pattern-lab/uikit-workshop)
2020

2121
## Prerequisites

packages/edition-node/helpers/test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = function(Handlebars) {
2+
Handlebars.registerHelper('test', function() {
3+
return 'This is a test helper';
4+
});
5+
};

packages/edition-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dependencies": {
77
"@pattern-lab/cli": "^0.0.3",
88
"@pattern-lab/core": "^3.0.1",
9-
"@pattern-lab/engine-mustache": "^2.0.1-alpha.0",
9+
"@pattern-lab/engine-handlebars": "^2.0.0-beta.1",
1010
"@pattern-lab/uikit-workshop": "^1.0.1"
1111
},
1212
"keywords": [

packages/edition-node/patternlab-config.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"css": "public/css"
6969
}
7070
},
71-
"patternExtension": "mustache",
71+
"patternExtension": "hbs",
7272
"patternStateCascade": ["inprogress", "inreview", "complete"],
7373
"patternExportDirectory": "./pattern_exports/",
7474
"patternExportPatternPartials": [],
@@ -90,5 +90,10 @@
9090
"excludedPatternStates": [],
9191
"excludedTags": []
9292
}
93-
]
93+
],
94+
"engines": {
95+
"handlebars": {
96+
"extend": "helpers/*.js"
97+
}
98+
}
9499
}

0 commit comments

Comments
 (0)