(text)
| 175 | |
| 176 | |
| 177 | def replace_templates(text): |
| 178 | tpl_lines = [] |
| 179 | for line in text.splitlines(): |
| 180 | if line.startswith("(( template="): |
| 181 | match = re.search(r"^\(\( template=(.+?) \)\)", line) |
| 182 | name = match.group(1) |
| 183 | tpl_lines.append(replace_templates(templates[name].strip())) |
| 184 | else: |
| 185 | tpl_lines.append(line) |
| 186 | return "\n".join(tpl_lines) |
| 187 | |
| 188 | def getScriptVersion(): |
| 189 | return scriptutil.find_current_version() |
no test coverage detected
searching dependent graphs…