I followed the example on the forums about using the echo template render. It works perfectly when I run my binary from the projects working directory however if I run it outside my projects directory I get the error:
panic: html/template: pattern matches no files: public/*.html
I want to be able to package up my templates in my binary, so I can run it from anywhere. I have found this but haven’t managed to get it to work with the echo template render.
Has anyone had any success doing this with echo?