Public Member Functions | |
def | __init__ (self, template, begin_mark="\, end_mark="\") |
def | del_nl_after_cmd (self) |
def | generate (self, dict) |
def | get_script (self) |
def | lineno (self) |
Public Attributes | |
begin_mark | |
cmd_cxt | |
indent | |
index | |
level | |
re_args | |
re_number | |
re_parse | |
script | |
script_level | |
template | |
token | |
token_len | |
Private Member Functions | |
def | __cmd (self, args) |
def | __elif_any_cmd (self, args) |
def | __elif_cmd (self, args) |
def | __elif_index_cmd (self, args) |
def | __else_cmd (self, args) |
def | __endfor_cmd (self, args) |
def | __endif_cmd (self, args) |
def | __for_cmd (self, args) |
def | __if_any_cmd (self, args) |
def | __if_cmd (self, args) |
def | __if_index_cmd (self, args) |
def | __indent (self) |
def | __parse (self) |
def | __parse_template (self, dict) |
def | __pop_level (self) |
def | __print_error (self, e) |
def | __proc_bracket (self) |
def | __proc_cmd (self) |
def | __proc_text (self) |
def | __push_level (self) |
def | __write_cmd (self, cmd) |
def | __write_cmd_noindex (self, cmd) |
Private Attributes | |
__procs | |
usage: tempalte_text = read template text from file dictionary = create dictionaly by using yaml t = Template(tempalte_text) generated_text = t.generate(dictionary)
def yat.Template.__init__ | ( | self, | |
template, | |||
begin_mark = "\[" , |
|||
end_mark = "\]" |
|||
) |
|
private |
|
private |