{{ $title := "a & b" }}
<script type="application/ld+json">{"@type":"WebPage","headline":"{{$title}}"}</script>
-{{/* Action newlines, from Go 1.16, see https://github.com/golang/go/issues/29770 */}}
+{{/* Action/commands newlines, from Go 1.16, see https://github.com/golang/go/issues/29770 */}}
{{ $norway := dict
"country" "Norway"
"population" "5 millions"
"dialing_code" "+47"
}}
-Population in Norway is {{ $norway.population }}
+Population in Norway is {{
+ $norway.population
+ | lower
+ | upper
+}}
`,
)
b.AssertFileContent("public/index.html", `
<script type="application/ld+json">{"@type":"WebPage","headline":"a \u0026 b"}</script>
-Population in Norway is 5 millions
+Population in Norway is 5 MILLIONS
`)
}