Mercurial > libervia-web
diff libervia/server/constants.py @ 1253:6d49fae517ba
pages: browser metadata + root `_browser`:
- the `_browser` directory can now be put in root of a site `pages` directory, it will then
include modules for the whole website
- in `_browser` directories (notably the root one), a `browser_meta.json` file can be put to
specify settings for a browser engine
- pathlib.Path is now used LiberviaRootResource.site_path
- introduced some type hints
- task_brython copy modules in root `_browser` to build_path root.
- minimal python version is now 3.7 due to type hints
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 29 Apr 2020 17:34:53 +0200 |
parents | 9b865f2604a9 |
children | 1ec41ac1e7cf |
line wrap: on
line diff
--- a/libervia/server/constants.py Wed Apr 29 15:00:54 2020 +0200 +++ b/libervia/server/constants.py Wed Apr 29 17:34:53 2020 +0200 @@ -60,6 +60,7 @@ ## Libervia pages ## PAGES_META_FILE = "page_meta.py" PAGES_BROWSER_DIR = "_browser" + PAGES_BROWSER_META_FILE = "browser_meta.json" PAGES_ACCESS_NONE = ( "none" ) # no access to this page (using its path will return a 404 error)