josephspurrier / gowebapp

Basic MVC Web Application in Go
MIT License
1.14k stars 197 forks source link

Error to use RenderSingle with file in child folder? #28

Closed dzpt closed 3 years ago

dzpt commented 6 years ago

I want to render single file but get this error:

Template Parse Error: open admin/test.html: no such file or directory

v := view.New(r)
v.Name = "admin/test"
v.RenderSingle(w)

After moving test file upper one level, it works. Why?

josephspurrier commented 6 years ago

Could you please provide more info on where specifically the test.html file is when it works and when it does not work?

josephspurrier commented 3 years ago

Closing - old issue.