When customizing a single template for a collection, for instance not_found.html, template dependencies are not resolved and lead to rendering or server errors.
Steps to reproduce the bug
Start out with new pywb 2.7 install.
Initialize a new collection test via wb-manager init test
Create custom error message for the collection via wb-manager template --add not_found_html
files base.html and not_found.html appear in collections/test/templates/.
The template should display correctly. Any template dependencies should be looked up in the current collection's templates directory, if not present fall back to the deployment's base template directory, and finally to pywb's distribution directory.
Otherwise it will be very hard to customize a single template for a collection, as that would mean to "fork" the whole template dependency chain. Curators would need to manage all templates for all collection after possible pywb updates.
When customizing a single template for a collection, for instance
not_found.html
, template dependencies are not resolved and lead to rendering or server errors.Steps to reproduce the bug
test
viawb-manager init test
wb-manager template --add not_found_html
base.html
andnot_found.html
appear incollections/test/templates/
.collections/test/templates/base.html
Expected behavior
The template should display correctly. Any template dependencies should be looked up in the current collection's
templates
directory, if not present fall back to the deployment's basetemplate
directory, and finally to pywb's distribution directory.Otherwise it will be very hard to customize a single template for a collection, as that would mean to "fork" the whole template dependency chain. Curators would need to manage all templates for all collection after possible pywb updates.