mustache-cli
mustache-cli copied to clipboard
Replace variable names in path name, file name and file content recursively.
Should be nice to replace variable names in path name, file name and file content recursively.
structure:
- template
- {{project-name}}
- file1.txt
-file2.txt
- settings-{{project-name}}.yml
file: variables.yml
project-name: lorem-ipsum
command
mustache -r variables.yml template\
result:
- template-rendered
- lorem-ipsum
- file1.txt
-file2.txt
- settings-lorem-ipsum.yml
I like this idea, I should have time to whip something up tomorrow.