-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERRO] 2018/01/13 12:33 html/template: cannot Parse after Execute #872
Comments
Of course it can't parse after execute, this is |
Then the method Reload() should be deprecated, or we can sync road and execute if reload is true in dev mode. |
Why deprecated man? It's not created to be used like that, it's inside the |
No problem in product environment, but it is unavailable in dev mode! In dev mode(set Reload(true)), it's not convenient to modify template file that can lead to parse error! So ... the method Reload() should be deprecated, or we can sync road and execute if reload is true in dev mode. I had sync the block following, it's work in dev mode.
} |
// The case when concurrent access!
//
// - go version go1.9.1 windows/amd64
// - Iris-10.0.0
//
// template config
tpl := iris.HTML(configuration.TplBae, Tpl_suffix)
// reload templates on each request (development mode!)
tpl.Reload(true)
The text was updated successfully, but these errors were encountered: