Chains returns the fixed template parts and functions used by Execute.
()
| 104 | |
| 105 | // Chains returns the fixed template parts and functions used by Execute. |
| 106 | func (t *Template[C, D]) Chains() ([][]byte, []Func[C, D]) { |
| 107 | if t == nil { |
| 108 | return nil, nil |
| 109 | } |
| 110 | return t.fixedParts, t.funcChain |
| 111 | } |
| 112 | |
| 113 | // Execute renders the template into output. |
| 114 | func (t *Template[C, D]) Execute(output Buffer, ctx C, data *D) error { |
no outgoing calls