Skip to content

Metadata from path and filename #12

@ingwinlu

Description

@ingwinlu

Hi,

it would be nice to parse the filepath via a regex, so you can match groups to get additional metadata from the filepath, for example a blog could use something like this:

posts    => {markdown, "posts/(?P<category>[a-zA-Z]\\w+)/.*\\.md"}

That would mean redoing lpad_util:load_file_data as well as the DL's as we would need to pass metadata parsed by load_file_data additional to the fun that is used now.

While I am willing to work on that I am wondering if there is an easier way then iterating over every file under root and try to match regular expressions so I am welcome to any suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions