Public Member Functions | |
def | __init__ |
def | del_nl_after_cmd |
def | generate |
def | get_script |
def | lineno |
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 |
def | __elif_any_cmd |
def | __elif_cmd |
def | __elif_index_cmd |
def | __else_cmd |
def | __endfor_cmd |
def | __endif_cmd |
def | __for_cmd |
def | __if_any_cmd |
def | __if_cmd |
def | __if_index_cmd |
def | __indent |
def | __parse |
def | __parse_template |
def | __pop_level |
def | __print_error |
def | __proc_bracket |
def | __proc_cmd |
def | __proc_text |
def | __push_level |
def | __write_cmd |
def | __write_cmd_noindex |
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 = "\]" |
|||
) |
def yat.Template.__cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__elif_any_cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__elif_cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__elif_index_cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__else_cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__endfor_cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__endif_cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__for_cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__if_any_cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__if_cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__if_index_cmd | ( | self, | |
args | |||
) | [private] |
def yat.Template.__indent | ( | self | ) | [private] |
def yat.Template.__parse | ( | self | ) | [private] |
def yat.Template.__parse_template | ( | self, | |
dict | |||
) | [private] |
def yat.Template.__pop_level | ( | self | ) | [private] |
def yat.Template.__print_error | ( | self, | |
e | |||
) | [private] |
def yat.Template.__proc_bracket | ( | self | ) | [private] |
def yat.Template.__proc_cmd | ( | self | ) | [private] |
def yat.Template.__proc_text | ( | self | ) | [private] |
def yat.Template.__push_level | ( | self | ) | [private] |
def yat.Template.__write_cmd | ( | self, | |
cmd | |||
) | [private] |
def yat.Template.__write_cmd_noindex | ( | self, | |
cmd | |||
) | [private] |
def yat.Template.del_nl_after_cmd | ( | self | ) |
def yat.Template.generate | ( | self, | |
dict | |||
) |
def yat.Template.get_script | ( | self | ) |
def yat.Template.lineno | ( | self | ) |
yat.Template::__procs [private] |