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

Method fromCache

view/django.go:306–316  ·  view source on GitHub ↗
(relativeName string)

Source from the content-addressed store, hash-verified

304}
305
306func (s *DjangoEngine) fromCache(relativeName string) *pongo2.Template {
307 if s.reload {
308 s.rmu.RLock()
309 defer s.rmu.RUnlock()
310 }
311
312 if tmpl, ok := s.templateCache[relativeName]; ok {
313 return tmpl
314 }
315 return nil
316}
317
318// ExecuteWriter executes a templates and write its results to the w writer
319// layout here is useless.

Callers 1

ExecuteWriterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected