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

Ability to add extra routes and related templates #486

Closed
clausjuhl opened this issue May 24, 2019 · 2 comments
Closed

Ability to add extra routes and related templates #486

clausjuhl opened this issue May 24, 2019 · 2 comments

Comments

@clausjuhl
Copy link

Hi Simon

Thank for an excellent job! Datasette is such an obviously good idea (once you have that idea!) and so well done. The only thing that I miss, is the ability to add extras routes (with associated jinja2-templates). For most of the datasets, that I would like to publish, I would also like at least a page, that describes the data (semantics, provenance, biases...) and a page explaining our cookie- and privacy-policies (which would allows us to use something like Goggle Analytics).

@simonw
Copy link
Owner

simonw commented May 24, 2019

I'm really keen to offer this as a plugin hook once I have Datasette working on ASGI - #272

I'll hopefully have that working in the next few weeks, but in the meantime there are a couple of tricks you can use:

  • you can add static HTML files (no templates though) using the static route configuration options
  • you can link to external hosted pages using the about_url metadata option
  • you can add information to an existing page with a custom template. I do that here for example: https://russian-ira-facebook-ads.datasettes.com/

@simonw
Copy link
Owner

simonw commented May 24, 2019

Closing this as a dupe of #215

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

2 participants