diff --git a/example_test.go b/example_test.go index 43da109..c10a9ed 100644 --- a/example_test.go +++ b/example_test.go @@ -12,10 +12,10 @@ import ( const indexhtml = ` {{$.HeadHTML}} - - {{$.Range .Dot}} + {{with .Dot}} + {{$.Range .}} {{$.TailHTML}} - + {{end}} `