mirror of https://github.com/mickael-menu/zk
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
433 B
Plaintext
19 lines
433 B
Plaintext
$ cd new
|
|
|
|
$ mkdir "a dir"
|
|
|
|
# Test Handlebars template variables.
|
|
$ echo "Piped content" | zk new --group handlebars --title "Note title" --date "January 2nd" --dry-run "a dir"
|
|
>id: {{match "[a-z0-9]{4}"}}
|
|
>title: Note title
|
|
>content: Piped content
|
|
>
|
|
>dir: a dir
|
|
>extra: {"key":"value","visibility":"public"}
|
|
>now: 02-01
|
|
>env: {{working-dir}}
|
|
>filename: note-title.md
|
|
>filename-stem: note-title
|
|
2>{{working-dir}}/a dir/note-title.md
|
|
|