Mercurial > libervia-web
diff libervia/server/pages.py @ 1258:92ff09cdd6dd
server: gather themes data:
- the new LiberviaRootResource's `site_themes` attribute is a set of available themes for
a site, it is set a template variable for pages.
- if `browser_meta` are available for a theme, the metadata are merged with pages root
`_browser` data
- if python files are found in `browser_path`, they are added to be handled by brython
task.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 03 May 2020 19:28:14 +0200 |
parents | 08cd652dea14 |
children | 6b7f9c3558cc |
line wrap: on
line diff
--- a/libervia/server/pages.py Sun May 03 18:25:11 2020 +0200 +++ b/libervia/server/pages.py Sun May 03 19:28:14 2020 +0200 @@ -1332,6 +1332,7 @@ return self.host.renderer.render( self.template, + site_themes=self.vhost_root.site_themes, page_url=self.getURL(), media_path=f"/{C.MEDIA_DIR}", cache_path=session_data.cache_dir,