Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Mechanism for adding arbitrary pages like /about #648
For www.niche-museums.com I solved this by creating an empty
I want a neater mechanism for this.
Alternative idea: a new concept of "pages" which live inside
This only takes effect on 404 errors from core Datasette.
The implementation in c5e8cd8 acts as a proof of concept. It has a big flaw though: it doesn't reuse the regular render() mechanism, which means it doesn't register custom template tags from plugins.
This is bad because it means that pages rendered in this way cannot take advantage of things like datasette-template-sql.
This means this issue is likely dependent on #577 - a documented mechanism to allow plugins to render templates.