Mercurial > libervia-web
comparison libervia/server/server.py @ 1256:08cd652dea14
server, pages, tasks (brython): common_scripts:
- scripts common to all pages can now be put in root `_browser` dir
- `scripts` list is not set in `dyn_data`'s `template` anymore, but directly in a root
`scripts` key (because it's not data which are sent verbatim to the template renderer)
- if an `__init__.py` script is found in root `_browser` dir, brython task will add it to
template scripts.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 03 May 2020 18:15:22 +0200 |
parents | 6d49fae517ba |
children | 1ec41ac1e7cf |
comparison
equal
deleted
inserted
replaced
1255:b1fb57e9176d | 1256:08cd652dea14 |
---|---|
184 self.host_name = host_name | 184 self.host_name = host_name |
185 self.site_name = site_name | 185 self.site_name = site_name |
186 self.site_path = Path(site_path) | 186 self.site_path = Path(site_path) |
187 self.named_pages = {} | 187 self.named_pages = {} |
188 self.browser_modules = {} | 188 self.browser_modules = {} |
189 # template dynamic data used in all pages | |
190 self.dyn_data_common = {"scripts": []} | |
189 self.uri_callbacks = {} | 191 self.uri_callbacks = {} |
190 self.pages_redirects = {} | 192 self.pages_redirects = {} |
191 self.cached_urls = {} | 193 self.cached_urls = {} |
192 self.main_menu = None | 194 self.main_menu = None |
193 build_path = host.getBuildPath(site_name) | 195 build_path = host.getBuildPath(site_name) |