We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Plugins should be able to bundle templates.
The Datasette template loader should then consult those plugins first when loading a template.
Jinja2 has a PackageLoader class that can help with this: http://jinja.pocoo.org/docs/2.10/api/#jinja2.PackageLoader
PackageLoader
Refs #14
The text was updated successfully, but these errors were encountered:
No need to use PackageLoader after all, we can use the same mechanism we used for the static path:
datasette/datasette/utils.py
Lines 694 to 695 in b55809a
Sorry, something went wrong.
Custom template example, and v0.3
a3fbee1
Refs simonw/datasette#224
b52171d
No branches or pull requests
Plugins should be able to bundle templates.
The Datasette template loader should then consult those plugins first when loading a template.
Jinja2 has a
PackageLoader
class that can help with this: http://jinja.pocoo.org/docs/2.10/api/#jinja2.PackageLoaderRefs #14
The text was updated successfully, but these errors were encountered: