core.modules.site
¶
Module Contents¶
Classes¶
The Site module simply serves static templates without a module-binding stored in html/sites. |
- class core.modules.site.Site(moduleName, modulePath, *args, **kwargs)¶
Bases:
viur.core.Module
The Site module simply serves static templates without a module-binding stored in html/sites.
It is normally imported as s module in modern ViUR projects, to serve pages under short URL. Therefore, a template html/sites/imprint.html can be accessed via /s/imprint by default.
- Parameters:
moduleName (str) –
modulePath (str) –
- adminInfo¶
- index(template='index', *arg, **kwargs)¶