Re: [go-nuts] nested or sub template by variable

2019-09-11 Thread dunlapg
On Tuesday, April 17, 2012 at 2:52:03 PM UTC+1, Rob 'Commander' Pike wrote: > > You can't, for safety reasons in html/template. The text/template > package has the same property so the packages are consistent. > > The examples in the documentation for text/template show how the same > effect can

Re: [go-nuts] nested or sub template by variable

2019-09-12 Thread Space A.
Just use {{if}}...{{elseif}} statements that will check .MainContent equality to specific value and will invoke specific {{template ...}} On Wednesday, September 11, 2019 at 3:40:22 PM UTC+3, dun...@gmail.com wrote: > > > > On Tuesday, April 17, 2012 at 2:52:03 PM UTC+1, Rob 'Commander' Pike