From 9cee32fd93e8d34d24dbd5315806f69b66556da7 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 1 Oct 2017 12:01:51 -0700 Subject: [PATCH] Updating README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3224837..f52c85f 100644 --- a/README.md +++ b/README.md @@ -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: -```toml +```json { "tasks": { "default": { @@ -234,17 +234,17 @@ 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 -config file. With the `.Env` prefix, all environment variables are available. Template example: +In the template file, the [go templating syntax](https://godoc.org/text/template) is used for the customization of the +configuration file. With the `.Env` prefix, all environment variables are available. Template example: -```toml +``` [user] -name = John Doe -{{ if eq .Env.USER "john" }} - email = john@doe.me -{{ else }} - email = john.doe@work.com -{{ end }} +name = "John Doe" +{{if eq .Env.USER "john"}} + email = "john@doe.me" +{{else}} + email = "john.doe@work.com" +{{end}} ``` In addition to creating links and processing templates, Homemaker is capable of executing commands on a per-task basis.