Skip to content

Instantly share code, notes, and snippets.

1
type MartiniPongo2 struct {
http.ResponseWriter
Context map[string]interface{}
}
func (m *MartiniPongo2) Html(fileName string, context map[string]interface{}) {
for k, v := range context {
m.Context[k] = v
}
var tpl = pongo2.Must(pongo2.FromFile("templates/" + fileName))
1
@zhangskills
zhangskills / gist:4351b3f9bc880004d823
Created September 11, 2014 06:45
elasticSearch相关
1
@zhangskills
zhangskills / gist:39ebedaf90b0fba50d1f
Created September 5, 2014 02:18
vim相关记录
1
@zhangskills
zhangskills / gist:864e9b0ee08c6fff03a7
Created September 3, 2014 13:00
ubuntu安装杂记
d