3 ms·
> what I'd like to do is point it at a directory and load all templates under that dir Doesn't https://golang.org/pkg/html/template/#ParseGlob https://golang.o
by marcus_holmes 10y ago
> what I'd like to do is point it at a directory and load all templates under that dir
Doesn't https://golang.org/pkg/html/template/#ParseGlob https://golang.org/pkg/html/template/#ParseGlob do exactly that?
- grey-area 10y agoNot really because there are several limitations, e.g. you can't have multiple templates with the same name, I like to key them by path and have several index templates for example.