mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-07 07:49:30 -05:00
fix: apply mode substitution after dynamic template fill (#84)
This commit is contained in:
@@ -58,8 +58,8 @@ def gen_replace_dynamic(colours: dict[str, str], template: Path, mode: str) -> s
|
|||||||
colours_dyn = get_dynamic_colours(colours)
|
colours_dyn = get_dynamic_colours(colours)
|
||||||
template_content = template.read_text()
|
template_content = template.read_text()
|
||||||
|
|
||||||
template_filled = re.sub(dotField, fill_colour, template_content)
|
template_filled = re.sub(dotField, fill_colour, template_content)
|
||||||
template_filled = re.sub(modeField, mode, template_content)
|
template_filled = re.sub(modeField, mode, template_filled)
|
||||||
|
|
||||||
return template_filled
|
return template_filled
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user