// Create a new default milo renderer.
Create a new default milo renderer.
// Create a new default milo renderer .
func NewRenderer(tplDir string, cache bool, configer Configer) *Renderer {
	r := &Renderer{templateCache: make(map[string]*template.Template), tplDir: tplDir, tplFuncs: make(map[string]interface{}), cacheTpls: cache, configer: configer}
	r.tplFuncs["host"] = Host
	r.tplFuncs["marshal"] = Marshal
	r.tplFuncs["partial"] = r.Partial
	r.tplFuncs["title"] = Title
	r.tplFuncs["gravatar"] = Gravatar
	return r
}
func NewRenderer ( tplDir string , cache bool , configer Configer ) * Renderer { r := & Renderer { templateCache : make ( map [ string ] * template . Template ) , tplDir : tplDir , tplFuncs : make ( map [ string ] interface { } ) , cacheTpls : cache , configer : configer } r . tplFuncs [ " " ] = Host r . tplFuncs [ " " ] = Marshal r . tplFuncs [ " " ] = r . Partial r . tplFuncs [ " " ] = Title r . tplFuncs [ " " ] = Gravatar return r }
Create a new default milo renderer.
Create a new default milo renderer .