RDFLib / VocPrez

A tool (API and web front-end) for the read-only delivery system of SKOS vocabularies.
GNU General Public License v3.0
21 stars 13 forks source link

Implement an genuine override method for templates #40

Open rob-metalinkage opened 3 years ago

rob-metalinkage commented 3 years ago

Current approach to applying a skin is to overwrite templates from core - this means extra understanding, discipline and effort juggling git rollbacks if developing in core, and also requires an overwriting process during install.

it would be better to use an environment variable to specify a preferred location for templates etc and fall back on the defaults in core if not found. Preferably the same variable could be used for locating plug-in code rather than mutating core code.

nicholascar commented 3 years ago

I'm not having any luck applying Flask - the Python web API framework in use - with more than one template location.