Lines Matching defs:templates
513 def template_replace(templates: list[str], replacements: dict[str, list[str]]) -> list[tuple[str]]:
514 """Renders templates with possible combinations of replacements.
517 templates = ["dog_breed are awesome", "dog_breed are cool"]
526 templates = ["Huskies are word1 but also word2"]
538 templates = ["Huskies are word1", "Beagles!"]
559 # Second, generate rendered templates, including possible duplicates.
565 for template in templates:
585 templates=["Cats are word1", "Dogs are word2"],
601 templates=["Cats are word1", "Dogs!"],
658 templates=[alias_template, args_template, expected_template],
724 templates=[alias_template, args_template, expected_template],
756 templates=[alias_template, args_template, expected_template],
858 templates=[alias_template, args_template, expected_template],