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

Template content type paths #260

Open
carbontwelve opened this issue Oct 5, 2017 · 0 comments
Open

Template content type paths #260

carbontwelve opened this issue Oct 5, 2017 · 0 comments
Assignees
Milestone

Comments

@carbontwelve
Copy link
Member

Looking at line 30 of DefaultConfig you will notice that the path option only accepts the folder within a projects source as the input.

However given the potential addition of internationalization with #259 it would be beneficial to allow developers to dictate how the path gets parsed.

For example by default Tapestry will only look at filenames of any file found within a content type path for the date and slug e.g. 2017-10-05-post-title-slug.md. The aforementioned could be parsed by the following path option template: _blog/{yyyy}-{mm}-{dd}-{slug}.{ext} or _blog/{yyyy}-{mm}-{dd}-{slug}.md if they wanted to only deal with mark down files. This then opens people up to having their posts organised in folders for example _blog/{yyyy}/{mm}/{slug}.{ext}

Using the template paths Tapestry would better be able to fill a page's meta data while at the same time adding flexibility to how developers choose to lay out their projects.

@carbontwelve carbontwelve added this to the 1.1.0 milestone Oct 5, 2017
@carbontwelve carbontwelve self-assigned this Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant