(maxParams uint16)
| 250 | } |
| 251 | |
| 252 | func (engine *Engine) allocateContext(maxParams uint16) *Context { |
| 253 | v := make(Params, 0, maxParams) |
| 254 | skippedNodes := make([]skippedNode, 0, engine.maxSections) |
| 255 | return &Context{engine: engine, params: &v, skippedNodes: &skippedNodes} |
| 256 | } |
| 257 | |
| 258 | // Delims sets template left and right delims and returns an Engine instance. |
| 259 | func (engine *Engine) Delims(left, right string) *Engine { |
no outgoing calls