Merge pull request #87 from doodzik/patch-1

changing pattern example fix #79
This commit is contained in:
Ismay 2016-05-08 11:30:30 +02:00
commit cb6e9ee095

View file

@ -165,14 +165,15 @@ Only files that match this pattern will be processed. So this `metalsmith.json`:
{ {
"plugins": { "plugins": {
"metalsmith-layouts": { "metalsmith-layouts": {
"engine": "swig", "engine": "handlebars",
"pattern": "*.md" "pattern": "**/*.hbs"
} }
} }
} }
``` ```
Would only process files that have the `.md` extension. Would process all files that have the `.hbs` extension. Beware that the extensions might be changed by other plugins in the build chain, preventing the pattern from matching.
We use [multimatch](https://github.com/sindresorhus/multimatch) for the pattern matching.
### rename ### rename