Updating README.md

This commit is contained in:
Alex Yatskov 2017-10-01 12:01:51 -07:00
parent 694c76bceb
commit 9cee32fd93

View File

@ -100,7 +100,7 @@ configuration file from being parsed correctly.
We could have just as easily written this configuration in JSON (or YAML for that matter), but it's subjectively uglier: We could have just as easily written this configuration in JSON (or YAML for that matter), but it's subjectively uglier:
```toml ```json
{ {
"tasks": { "tasks": {
"default": { "default": {
@ -235,16 +235,16 @@ supports templates. The configuration syntax for templates is the same as for li
``` ```
In the template file, the [go templating syntax](https://godoc.org/text/template) is used for the customization of the In the template file, the [go templating syntax](https://godoc.org/text/template) is used for the customization of the
config file. With the `.Env` prefix, all environment variables are available. Template example: configuration file. With the `.Env` prefix, all environment variables are available. Template example:
```toml ```
[user] [user]
name = John Doe name = "John Doe"
{{ if eq .Env.USER "john" }} {{if eq .Env.USER "john"}}
email = john@doe.me email = "john@doe.me"
{{ else }} {{else}}
email = john.doe@work.com email = "john.doe@work.com"
{{ end }} {{end}}
``` ```
In addition to creating links and processing templates, Homemaker is capable of executing commands on a per-task basis. In addition to creating links and processing templates, Homemaker is capable of executing commands on a per-task basis.