diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-02-17 16:45:59 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-02-17 16:45:59 +0100 |
commit | 667f3a4ba880b14f346161891cd43e2ba9ce9b9d (patch) | |
tree | 73588862d373f5d61ae358adda0c17216a6d9a90 /tpl/partials | |
parent | c061b253a4066e7932c2fc7aefb67c9572719b65 (diff) | |
download | hugo-667f3a4ba880b14f346161891cd43e2ba9ce9b9d.tar.gz hugo-667f3a4ba880b14f346161891cd43e2ba9ce9b9d.zip |
tpl/partials: Add some more partials to BenchmarkIncludeCached
Diffstat (limited to 'tpl/partials')
-rw-r--r-- | tpl/partials/integration_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tpl/partials/integration_test.go b/tpl/partials/integration_test.go index 9826ac119..5b6c18598 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 }} |