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

Auto routing markdown #47

Merged
merged 3 commits into from
Mar 29, 2024
Merged

Auto routing markdown #47

merged 3 commits into from
Mar 29, 2024

Conversation

bobf
Copy link
Contributor

@bobf bobf commented Mar 28, 2024

No description provided.

bobf added 3 commits March 28, 2024 22:09
If a route isn't matched but the URI can match directly to a markdown
file, render it directly. This allows putting arbitrary markdown files
in e.g. `/foo/bar/abc.md`, `/foo/bar/def.md` and rendering them as
`/foo/bar/abc.html`, `/foo/bar/def.html`. Since markdown are static
content only (i.e. no template data etc.) it makes sense for them to be
renderable without needing to create a view for each one.
Render appropriately-formatted errors for HTML/JSON.
Fix secret generation - overallocate length to ensure we have enough
bytes.

Error if no secret provided in production mode.
@bobf bobf merged commit 800b72e into main Mar 29, 2024
3 checks passed
@bobf bobf deleted the auto-routing-markdown branch April 28, 2024 13:10
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

Successfully merging this pull request may close these issues.

1 participant