foolin/goview

How to parse html template in to echo render?

Closed this issue · 3 comments

Is there any option to parse some string like "{{.Title}}"?

Example
return c.Render(http.StatusOK, index), echo.Map{"Render": "{{.Title}}"})

you can see echo example.

return c.Render(http.StatusOK, "Index"), echo.Map{"MyForm": myfunction })

Because I generate form with validation so in myfunction it's contained some text <input type="text" value="{{.Table.FieldName}}">. with code above it's show plain text of "{{.Form.FieldName}}" instead of real value.

So what is a correct way to get value in to my html input?