From 4f022aa254a5b4da81995b57613de9564b385a3c Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Mon, 6 Jul 2020 21:11:17 +0300 Subject: [PATCH] Add ProvidesIndex() bool --- examples/todos/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/todos/main.go b/examples/todos/main.go index 145151d..d590d3d 100644 --- a/examples/todos/main.go +++ b/examples/todos/main.go @@ -64,6 +64,8 @@ func (dt *doneTODOs) Range() (reflect.Value, reflect.Value, bool) { return reflect.Value{}, reflect.Value{}, true } +func (dt *doneTODOs) ProvidesIndex() bool { return true } + // Render implements jet.Renderer interface func (t *tTODO) Render(r *jet.Runtime) { done := "yes"