MCPcopy Create free account
hub / github.com/apache/solr / replace_templates

Function replace_templates

dev-tools/scripts/releaseWizard.py:177–186  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

175
176
177def 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
188def getScriptVersion():
189 return scriptutil.find_current_version()

Callers 1

expand_jinjaFunction · 0.85

Calls 4

stripMethod · 0.80
appendMethod · 0.65
searchMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…