Skip to content

Commit

Permalink
No substitution for gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll committed Apr 12, 2024
1 parent 16f8354 commit 987b2e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/py/flwr/cli/new/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ def render_template(template: str, data: Dict[str, str]) -> str:
"""Render template."""
tpl_file = load_template(template)
tpl = Template(tpl_file)
result = tpl.substitute(data)
return result
if not ".gitignore" in template:
return tpl.substitute(data)
else:
return tpl.template


def create_file(file_path: str, content: str) -> None:
Expand Down

0 comments on commit 987b2e4

Please sign in to comment.