mirror of
https://github.com/simonw/datasette.git
synced 2026-05-28 12:56:18 +02:00
An open source multi-tool for exploring and publishing data
https://datasette.io
- Python 85.8%
- HTML 7.9%
- JavaScript 4.5%
- CSS 1.4%
- Shell 0.2%
I now call a factory function to construct the Sanic app:
app = app_factory(files)
This allows me to pass additional arguments to it, e.g. the files to serve.
Also refactored my class-based views to accept jinja as an argument, e.g:
app.add_route(
TableView.as_view(jinja),
'/<db_name:[^/]+>/<table:[^/]+?><as_json:(.jsono?)?$>'
)
|
||
|---|---|---|
| datasite | ||
| .gitignore | ||
| .travis.yml | ||
| Dockerfile | ||
| LICENSE | ||
| setup.cfg | ||
| setup.py | ||
| test_helpers.py | ||