Thomas Genin

Photography, Large scale Web App


Nested templates in Golang

On Dec 15, 2013 in Golang  

Here is snippet of code showing how to do nested template in Golang, with templates being stored in multiple files

While being very simple, it took me a bit of trial as the documentation does not talk about multifile

I store the templates in a global for performance thanks to the guide "Writing Web applications"

I use go1.2


Expensify Offshore 2012: the video