Skip to content

the default glob pattern is not **/* for 'nunjucks' transform #193

@AndreKelling

Description

@AndreKelling

in the current Options Docs https://github.com/metalsmith/layouts/tree/v3.0.0?tab=readme-ov-file#options its written, that pattern option has a default of **/*.

In the JS DocBlock it is written as pattern='**' which is different again.

But actually it is falling to **/*.{${inputFormats.join(',')}} which is with a transform of 'nunchucks' then '**/*.{njk,nunjucks}'.
See here https://github.com/metalsmith/layouts/blob/v3.0.0/src/index.js#L74

The pattern '**/*.{njk,nunjucks}' is not matching any .html files.

Where i guess the html files are what is desired to match here.

At least its working with pattern: "**/*.html", on my side and i am just a bit confused.

But of course props for all the good work over that long time!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions