MCPcopy Create free account
hub / github.com/CloudyKit/jet / addBlocks

Method addBlocks

parse.go:77–87  ·  view source on GitHub ↗
(blocks map[string]*BlockNode)

Source from the content-addressed store, hash-verified

75}
76
77func (t *Template) addBlocks(blocks map[string]*BlockNode) {
78 if len(blocks) == 0 {
79 return
80 }
81 if t.processedBlocks == nil {
82 t.processedBlocks = make(map[string]*BlockNode)
83 }
84 for key, value := range blocks {
85 t.processedBlocks[key] = value
86 }
87}
88
89// next returns the next token.
90func (t *Template) next() item {

Callers 1

parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected