diff --git a/dynamic.go b/dynamic.go index 8d56bad..76d628d 100644 --- a/dynamic.go +++ b/dynamic.go @@ -143,5 +143,6 @@ func (r DynamicRender) Instance(name string, data interface{}) render.Render { return render.HTML{ Template: builder.buildTemplate(), Data: data, + Name: name, } } diff --git a/multitemplate.go b/multitemplate.go index 0940aa8..be62649 100644 --- a/multitemplate.go +++ b/multitemplate.go @@ -81,5 +81,6 @@ func (r Render) Instance(name string, data interface{}) render.Render { return render.HTML{ Template: r[name], Data: data, + Name: name, } }