gws.plugin.template.py

Pure python templates.

A template is a python module. This module must provide a function called main, which receives the arguments object and returns a gws.Response object.

Source code: gws.plugin.template.py

Package Contents

class gws.plugin.template.py.Config

Bases: gws.base.template.Config

Python template

path: gws.FilePath | None

Path to a template file.

class gws.plugin.template.py.Object

Bases: gws.base.template.Object

path: str
compile()
configure()
render(tri)
class gws.plugin.template.py.Props

Bases: gws.base.template.Props