README.md in planter-cli-3.0.1 vs README.md in planter-cli-3.0.2

- old
+ new

@@ -25,13 +25,13 @@ "*.bak": ignore git_init: false preserve_tags: true ``` -### Scripts. +### Scripts -Scripts for execution after planting can be stored in `~/.config/planter/scripts` and referenced by filename only. Alternatively, scripts may be stored within a template in a `_scritps` subfolder. +Scripts for execution after planting can be stored in `~/.config/planter/scripts` and referenced by filename only. Alternatively, scripts may be stored within a template in a `_scripts` subfolder. Scripts can be executable files in any language, and receive the template directory and the planted directory as arguments $1 and $2. ### Templates @@ -72,10 +72,12 @@ files: "*.py": merge "%%title%%.md": overwrite ``` +Filenames can include wildcards (`*`, `?`), and Bash-style globbing (`[0-9]`, `[a-z]`, `{one,two,three}`). + If `merge` is specified, then the source file is scanned for merge comments and those are merged if they don't exist in the copied/existing file. If no merge comments are defined, then the entire contents of the source file are appended to the destination file (unless the file already matches the source). Merge comments start with `merge` and end with `/merge` and can have any comment syntax preceding them, for example: ``` // merge Merged content @@ -102,10 +104,10 @@ replacements: "Planter": "%%title:cap%%" "(main|app)\.js": "%%script:lower%%.js" ``` -Replacements are performed on both file/directory names and file contents. +Replacements are performed on both file/directory names and file contents. This is especially handy when the source of the plant is a Git repo, allowing the replacement of elements without having to create %%templated%% filenames and contents. ### Finder Tags If `preserve_tags` is set to `true` in the config (either base or template), then existing Finder tags on the file or folder will be copied to the new file when a template is planted.