Skip to content

Commit 6dd3fbf

Browse files
committed
Changed as per request
1 parent 85190a4 commit 6dd3fbf

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

revel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ const (
2525
)
2626
const (
2727
// Called when templates are going to be refreshed (receivers are registered template engines added to the template.engine conf option)
28-
TEMPLATE_REFRESH = iota
28+
TEMPLATE_REFRESH_REQUESTED = iota
2929
// Called when templates are refreshed (receivers are registered template engines added to the template.engine conf option)
30-
TEMPLATE_REFRESH_COMPLETE
30+
TEMPLATE_REFRESH_COMPLETED
3131

3232
)
3333
type revelLogs struct {

template.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ func (loader *TemplateLoader) Refresh() (err *Error) {
7272
}
7373
}
7474
for _, engine := range loader.templatesAndEngineList {
75-
engine.Event(TEMPLATE_REFRESH, nil)
75+
engine.Event(TEMPLATE_REFRESH_REQUESTED, nil)
7676
}
77-
fireEvent(TEMPLATE_REFRESH, nil)
77+
fireEvent(TEMPLATE_REFRESH_REQUESTED, nil)
7878
defer func() {
7979
for _, engine := range loader.templatesAndEngineList {
80-
engine.Event(TEMPLATE_REFRESH_COMPLETE, nil)
80+
engine.Event(TEMPLATE_REFRESH_COMPLETED, nil)
8181
}
82-
fireEvent(TEMPLATE_REFRESH_COMPLETE, nil)
82+
fireEvent(TEMPLATE_REFRESH_COMPLETED, nil)
8383
// Reset the TemplateMap, we don't prepopulate the map because
8484
loader.TemplateMap = map[string]Template{}
8585

template_adapter_go.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func (engine *GoEngine) Name() string {
256256
return GO_TEMPLATE
257257
}
258258
func (engine *GoEngine) Event(action int, i interface{}) {
259-
if action == TEMPLATE_REFRESH {
259+
if action == TEMPLATE_REFRESH_REQUESTED {
260260
// At this point all the templates have been passed into the
261261
engine.templatesBylowerName = map[string]*GoTemplate{}
262262
engine.templateSet = template.New("__root__").Funcs(TemplateFuncs)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy