Re: [go-nuts] macro support in text/template

2016-11-18 Thread mhhcbon
Solved that issue by creating components on server side, they hold a reference to the template, their block name, their configuration, so they can expose a render method to consume within the view. https://github.com/mh-cbon/mdl-go-components On Friday, November 18, 2016 at 10:23:21 PM

Re: [go-nuts] macro support in text/template

2016-11-18 Thread Manlio Perillo
Il giorno venerdì 18 novembre 2016 21:23:38 UTC+1, Ian Lance Taylor ha scritto: > > On Fri, Nov 18, 2016 at 11:50 AM, Manlio Perillo > wrote: > > > > I'm trying to implement HTML form support in Go, > > Forms are one of the most complex components to implement in a web

Re: [go-nuts] macro support in text/template

2016-11-18 Thread Ian Lance Taylor
On Fri, Nov 18, 2016 at 11:50 AM, Manlio Perillo wrote: > > I'm trying to implement HTML form support in Go, > Forms are one of the most complex components to implement in a web > application. > > Here is a simple form with only two text field, using bootstrap: >

[go-nuts] macro support in text/template

2016-11-18 Thread Manlio Perillo
Hi. I'm trying to implement HTML form support in Go, Forms are one of the most complex components to implement in a web application. Here is a simple form with only two text field, using bootstrap: https://gist.github.com/anonymous/5a21a22e6d5fd9d0f745c1700c634b54 Writing the HTML code by hand