Pass template as value

This commit is contained in:
Elara 2023-10-30 21:18:01 -07:00
parent 69e515326f
commit 3b6afd4fb2

View File

@ -40,6 +40,7 @@ func (mt macroTag) Run(tc *TagContext, block, args []ast.Node) error {
} else {
tc.t.macroMtx.Lock()
tc.t.macros[name] = block
println(tc.t.macros[name])
tc.t.macroMtx.Unlock()
}