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?
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
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:
Lines 694 to 695
Sorry, something went wrong.
Custom template example, and v0.3
No branches or pull requests