changing pattern example fix #79

This commit is contained in:
Frederik Dudzik 2016-05-08 08:14:17 +02:00
parent eabd737da1
commit 300bcd5bbf

View file

@ -165,14 +165,15 @@ Only files that match this pattern will be processed. So this `metalsmith.json`:
{
"plugins": {
"metalsmith-layouts": {
"engine": "swig",
"pattern": "*.md"
"engine": "handlebars",
"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