mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
replace the redis library we used with another one, no performance differences but most options for connections pooling and read/write/connect timeout (two config fields are changed as well)
relative to: https://github.com/kataras/iris/issues/1285 Former-commit-id: c20530cd67144ab8d1c9325807fe5c13268fa428
This commit is contained in:
@@ -27,6 +27,8 @@ type HandlebarsEngine struct {
|
||||
templateCache map[string]*raymond.Template
|
||||
}
|
||||
|
||||
var _ Engine = (*HandlebarsEngine)(nil)
|
||||
|
||||
// Handlebars creates and returns a new handlebars view engine.
|
||||
func Handlebars(directory, extension string) *HandlebarsEngine {
|
||||
s := &HandlebarsEngine{
|
||||
@@ -95,7 +97,7 @@ func (s *HandlebarsEngine) AddFunc(funcName string, funcBody interface{}) {
|
||||
}
|
||||
|
||||
// Load parses the templates to the engine.
|
||||
// It's alos responsible to add the necessary global functions.
|
||||
// It is responsible to add the necessary global functions.
|
||||
//
|
||||
// Returns an error if something bad happens, user is responsible to catch it.
|
||||
func (s *HandlebarsEngine) Load() error {
|
||||
|
||||
Reference in New Issue
Block a user