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.
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:
That would mean redoing
lpad_util:load_file_dataas well as theDL'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.