mustache-cli icon indicating copy to clipboard operation
mustache-cli copied to clipboard

Replace variable names in path name, file name and file content recursively.

Open johnowl opened this issue 4 years ago • 1 comments

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

johnowl avatar Jun 06 '20 14:06 johnowl

I like this idea, I should have time to whip something up tomorrow.

quantumew avatar Jun 29 '20 04:06 quantumew