For the theme, I'm leaning toward using a template file.
- The "theme dat" has been mounted to the site's
/theme
directory. - User visits
/index.html
on the site- The
/theme/template.html
file is loaded. - The
/index.html
file is loaded.
- The
- Output is constructed:
- The template
<!-- TEMPLATE-CONTENT -->
string gets replaced with the content of/index.html
- The resulting string is served.
- The template
This would enable the template to inject css, js, and layout.