Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata from path and filename #12

Open
ingwinlu opened this issue Apr 24, 2015 · 0 comments
Open

Metadata from path and filename #12

ingwinlu opened this issue Apr 24, 2015 · 0 comments

Comments

@ingwinlu
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant