Thomas Genin

Photography, Large scale Web App

About

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

Previously

Expensify Offshore 2012: the video