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

Explore using filename driven dynamic page generation #470

Open
rdmurphy opened this issue Sep 25, 2020 · 0 comments
Open

Explore using filename driven dynamic page generation #470

rdmurphy opened this issue Sep 25, 2020 · 0 comments

Comments

@rdmurphy
Copy link
Collaborator

rdmurphy commented Sep 25, 2020

Next.js has this cool method for rendering dynamic pages by adding extra info in the file. Sapper has a version of it too. Eleventy does it in its front matter but I find this incredibly confusing.

These all expect you to write some additional JS to react to that situation, but I wonder if we could either 1) come up with a solution that doesn't require that, and can determine everything directly in the file name, or 2) have our own version of front matter/pre-load JS that fills out the necessary fields.

I think the most ideal scenario would be to have the template and the instructions for the template as close as possible to each other if not in the same file.

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