I want to load a folder of HTML templates in Go and right now I can only pass in each file path as a string in an argument.
Example:
templates = template.Must(template.ParseFiles("../web/html_templates/edit.html","../web/html_mplates/view.html"))
Works fine.
This and similar solutions won't work:
templates = template.Must(template.ParseFiles("../web/html_templates/*"))
I'd like to specify my templates in a config file but I currently can't. What's the best way to go about this?