Shirakumo / radiance

A Common Lisp web application environment
https://shirakumo.github.io/radiance/
zlib License
311 stars 19 forks source link

Mechanism to Override Templates #26

Closed Shinmera closed 5 years ago

Shinmera commented 6 years ago

In order to make modules re-usable by administrators, templates and such need to be customisable without directly modifying the source. I'm not sure yet how this might be facilitated, but it's an important step to keep things properly encapsulated and easily extensible.

Shinmera commented 5 years ago

Using the change from #28, a new environment directory for template overrides could be used. The template-file function would then first check for the presence of an equivalent file in that directory, and fall back to the source directory otherwise. This would still require modules to be recompiled in case a template is added or changed, but that's a small price to pay. Will definitely need to be documented though as I imagine it would be confusing if the template overrides don't take place immediately.