Home | History | Annotate | Download | only in template

Lines Matching refs:nt

55 	nt := &Template{
61 return nt
82 nt := t.copy(nil)
83 nt.init()
85 return nt, nil
89 nt.tmpl[t.name] = nt
92 // The associated templates share nt's common structure.
93 tmpl := v.copy(nt.common)
94 nt.tmpl[k] = tmpl
99 nt.parseFuncs[k] = v
102 nt.execFuncs[k] = v
104 return nt, nil
109 nt := New(t.name)
110 nt.Tree = t.Tree
111 nt.common = c
112 nt.leftDelim = t.leftDelim
113 nt.rightDelim = t.rightDelim
114 return nt
123 nt := t
125 nt = t.New(name)
127 // Even if nt == t, we need to install it in the common.tmpl map.
128 if replace, err := t.associate(nt, tree); err != nil {
130 } else if replace || nt.Tree == nil {
131 nt.Tree = tree
133 return nt, nil