Skip to content

Support globstar in the directory config #520

@Wyctus

Description

@Wyctus

We use Askama with several templates in different directories. These directories are all subfolders of one parent directory.

Currently, we need to list all of them in the askama.toml file:

[general]
dirs = [
   "templates/folder1",
   "templates/folder2",
   # etc
   "templates/folder10"
]

It would be awesome if these directory paths supported globstar expressions to simplify it like this:

[general]
dirs = [
   "templates/**"
]

Thank you for Askama, it's a game changer!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions