From: Bjørn Erik Pedersen Date: Thu, 17 Feb 2022 15:45:59 +0000 (+0100) Subject: tpl/partials: Add some more partials to BenchmarkIncludeCached X-Git-Tag: v0.93.0~47 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=667f3a4ba880b14f346161891cd43e2ba9ce9b9d;p=brevno-suite%2Fhugo tpl/partials: Add some more partials to BenchmarkIncludeCached --- diff --git a/tpl/partials/integration_test.go b/tpl/partials/integration_test.go index 9826ac11..5b6c1859 100644 --- a/tpl/partials/integration_test.go +++ b/tpl/partials/integration_test.go @@ -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 }}