1 """This module and submodules offers a generic way to create ws-agreement
\r
2 representations from structured data, by using templates.
\r
4 Each submodule (corresponding to a project) is responsible to declare
\r
5 the structured data to be used as input, and handle the specific template
\r
8 This module only defines a sample interface to be used for each Template object
\r
9 used by each project.
\r
11 Sample usage (read specific submodules' docs):
\r
12 data = slaclient.<project>.Input(...)
\r
13 tpl = slaclient.<project>.Template(...)
\r
19 class Template(object):
\r
21 def __init__(self, file_):
\r
22 """This is the interface that all project templates should "implement".
\r
24 It mimics the behavior of django templates.
\r
28 def render(self, data):
\r
29 """Renders this template using 'data' as input.
\r