Closed ycherniavskyi closed 7 years ago
With this functionality my current usage looks something like this:
...
metalsmith
.use($m.jstransformer({
pattern: '**.html.md',
layoutPattern: '!**',
}));
metalsmith
.use($m.branch('blog/*/**')
.use($m.wordCount())
.use($m.betterExcerpts())
);
metalsmith
.use($m.jstransformer({
pattern: '**.html*',
layoutPattern: 'layouts/**',
}));
...
Good call, we don't need that cached information. Nicely done! :+1:
If found possibility to resolve #18 in minor harm way - just delete auxiliary metadata from files after plugin finishes its work. So with such fix plugin could be called as many time as needed.
I tried to implement the test for this functionality, but without changing
plugins
parameter oftest
function fromObject
toArray
it seems not possible (because this test must use the same plugin..
several times).