hugo/tpl/partials
Cameron Moore 0004a733c8 tpl: Fix metrics hint tracking
When tracking for cache hints, track the same template name as the call
to MeasureSince in Execute.  When referencing a partial "foo", the value
of `n` does not match `templ.Name()` (`partials/foo` versus
`partials/foo.html`).  This was causing hints to go untracked since
there was no existing metric to append the hint to.

Fixes #8125
2021-01-08 20:01:11 +01:00
..
init.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
init_test.go tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
partials.go tpl: Fix metrics hint tracking 2021-01-08 20:01:11 +01:00
partials_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00