Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Public Member Functions | |
def | __init__ (self, template_file, dest_file_template_str, overwrite=True) |
def | render (self, renderer, model, dest_dir) |
Data Fields | |
dest_file_template | |
overwrite | |
template | |
Transformation for template to code.
Definition at line 31 of file transform.py.
def __init__ | ( | self, | |
template_file, | |||
dest_file_template_str, | |||
overwrite = True |
|||
) |
Ctor. @param template_file: Filename of the mustache template. @param dest_file_template_str: Destination file name. This is a mustache template, so each resource can write to a unique file. @param overwrite: If True, destination file is overwritten if it exists.
Definition at line 34 of file transform.py.
References transform.unicode().
def render | ( | self, | |
renderer, | |||
model, | |||
dest_dir | |||
) |
Render a model according to this transformation. @param render: Pystache renderer. @param model: Model object to render. @param dest_dir: Destination directory to write generated code.
Definition at line 48 of file transform.py.
References Transform.dest_file_template, Transform.overwrite, phoneprov_file.template, and Transform.template.
dest_file_template |
Definition at line 45 of file transform.py.
Referenced by Transform.render().
overwrite |
Definition at line 46 of file transform.py.
Referenced by Transform.render().
template |
Definition at line 43 of file transform.py.
Referenced by Transform.render().