tpl/partials: Add some more partials to BenchmarkIncludeCached
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 17 Feb 2022 15:45:59 +0000 (16:45 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 17 Feb 2022 15:45:59 +0000 (16:45 +0100)
tpl/partials/integration_test.go

index 9826ac119c0701c980b57257a39079bbca4e0469..5b6c185986164daf411c1da8fc04711e3c3f80fe 100644 (file)
@@ -167,6 +167,13 @@ baseURL = 'http://example.com/'
 -- layouts/index.html --
 -- layouts/_default/single.html --
 {{ partialCached "heavy.html" "foo" }}
+{{ partialCached "easy1.html" "bar" }}
+{{ partialCached "easy1.html" "baz" }}
+{{ partialCached "easy2.html" "baz" }}
+-- layouts/partials/easy1.html --
+ABCD
+-- layouts/partials/easy2.html --
+ABCDE
 -- layouts/partials/heavy.html --
 {{ $result := slice }}
 {{ range site.RegularPages }}