Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- dynamic.go do not pass name into render.HTML
- multitemplate do not pass name into render.HTML
  • Loading branch information
Tanawatra Chantaranit committed Apr 17, 2021
1 parent 666a730 commit 8da3835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,6 @@ func (r DynamicRender) Instance(name string, data interface{}) render.Render {
return render.HTML{
Template: builder.buildTemplate(),
Data: data,
Name: name,
}
}
1 change: 1 addition & 0 deletions multitemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ func (r Render) Instance(name string, data interface{}) render.Render {
return render.HTML{
Template: r[name],
Data: data,
Name: name,
}
}

0 comments on commit 8da3835

Please sign in to comment.