4 ms·
One subtle feature of Go's templating that I really appreciate is that it's possible (and easy!) to change the template delimiters[0]. This is really useful wh
by chimeracoder 12y ago
One subtle feature of Go's templating that I really appreciate is that it's possible (and easy!) to change the template delimiters[0].
This is really useful when dealing with systems like Angular.js, which also use "{{foo}}" as delimiters for injecting directives.
[0] https://github.com/ChimeraCoder/go-angular-jetpack/blob/master/handlers.go#L63 https://github.com/ChimeraCoder/go-angular-jetpack/blob/mast...