[go-nuts] Re: [ANN] template-compiler: compile go templates to go code

2017-02-02 Thread mhhcbon
HI! Some updates here, again! Down the road, i realized my benchmarks where not so correct, kind of erratic with sometimes huge improvements, sometimes minor improvements. I got this sorted out, and found the root of evil to be `template.HTMLEscapeString` So i worked this out, and now i m ver

[go-nuts] Re: [ANN] template-compiler: compile go templates to go code

2017-01-29 Thread mhhcbon
Hi, some major updates here, 1. much less ugly //go:generate comments. Rather than passing arguments to template-compiler, you declare a configuration variable into your code, template-compiler will locate and export it via the ast (amazing what we can do with it) So now it look likes this, //

[go-nuts] Re: [ANN] template-compiler: compile go templates to go code

2017-01-23 Thread Egon
Awesome :) On Saturday, 21 January 2017 16:58:53 UTC+2, mhh...@gmail.com wrote: > > Hi, > > I have been working on a package to compile go templates to regular go > code. > Today i can announce an early release of it. > > Find it here > https://github.com/mh-cbon/template-compiler > > There is s