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

Method Load

view/html.go:239–244  ·  view source on GitHub ↗

Load parses the templates to the engine. It's also responsible to add the necessary global functions. Returns an error if something bad happens, caller is responsible to handle that.

()

Source from the content-addressed store, hash-verified

237//
238// Returns an error if something bad happens, caller is responsible to handle that.
239func (s *HTMLEngine) Load() error {
240 s.rmu.Lock()
241 defer s.rmu.Unlock()
242
243 return s.load()
244}
245
246func (s *HTMLEngine) load() error {
247 if s.onLoad != nil {

Callers

nothing calls this directly

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected