Skip to content

Commit ad49c66

Browse files
committed
chore: Update template variables in structure.yaml and main.py
1 parent 2947416 commit ad49c66

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

example/structure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
structure:
22
- README.md:
33
content: |
4-
# {project_name}
4+
# ${project_name}
55
This is a template repository.
66
- script.sh:
77
permissions: '0777'
88
content: |
99
#!/bin/bash
10-
echo "Hello, {author_name}!"
10+
echo "Hello, ${author_name}!"
1111
- LICENSE:
1212
file: https://raw.githubusercontent.com/nishanths/license/master/LICENSE
1313
- .gitignore:

struct_module/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def apply_template_variables(self, template_vars):
7878
if self.content and template_vars:
7979
logging.debug(f"Applying template variables: {template_vars}")
8080
template = Template(self.content)
81+
print(template.substitute(template_vars))
8182
self.content = template.substitute(template_vars)
8283

8384
def create(self, base_path, dry_run=False, backup_path=None, file_strategy='overwrite'):

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)