diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-23 21:08:12 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-23 21:09:09 +0100 |
commit | ce06bdb16a64dd39a8ebbb2e5a53b33520b00bb1 (patch) | |
tree | 6dac463a32206d7f13f812d384d48334cf936f70 /hugolib | |
parent | 2efc1a64c391420b1007f6e94b6ff616fb136635 (diff) |
Rename CSV option from comma to delimiter
See #5555
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/resource_chain_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/resource_chain_test.go b/hugolib/resource_chain_test.go index 90022d6dc..551ac0177 100644 --- a/hugolib/resource_chain_test.go +++ b/hugolib/resource_chain_test.go @@ -343,12 +343,11 @@ Publish 2: {{ $cssPublish2.Permalink }} b.WithTemplates("home.html", ` {{ $toml := "slogan = \"Hugo Rocks!\"" | resources.FromString "slogan.toml" | transform.Unmarshal }} {{ $csv1 := "\"Hugo Rocks\",\"Hugo is Fast!\"" | resources.FromString "slogans.csv" | transform.Unmarshal }} -{{ $csv2 := "a;b;c" | transform.Unmarshal (dict "comma" ";") }} +{{ $csv2 := "a;b;c" | transform.Unmarshal (dict "delimiter" ";") }} Slogan: {{ $toml.slogan }} CSV1: {{ $csv1 }} {{ len (index $csv1 0) }} -CSV2: {{ $csv2 }} - +CSV2: {{ $csv2 }} `) }, func(b *sitesBuilder) { b.AssertFileContent("public/index.html", |