MCPcopy Create free account
hub / github.com/kataras/iris / fromCache

Method fromCache

view/handlebars.go:193–204  ·  view source on GitHub ↗
(relativeName string)

Source from the content-addressed store, hash-verified

191}
192
193func (s *HandlebarsEngine) fromCache(relativeName string) *raymond.Template {
194 if s.reload {
195 s.rmu.RLock()
196 defer s.rmu.RUnlock()
197 }
198
199 if tmpl, ok := s.templateCache[relativeName]; ok {
200 return tmpl
201 }
202
203 return nil
204}
205
206func (s *HandlebarsEngine) executeTemplateBuf(name string, binding interface{}) (string, error) {
207 if tmpl := s.fromCache(name); tmpl != nil {

Callers 2

executeTemplateBufMethod · 0.95
ExecuteWriterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected