Files
mgmt/lang/interpret_test/TestAstFunc2/template-1.txtar
James Shubin 29eebd0d07 lang: core: Move template to golang namespace
I don't think this template function should be in any way authoritative,
so let's namespace it.
2024-09-13 15:51:24 -04:00

11 lines
181 B
Plaintext

-- main.mcl --
import "golang"
$v = 42
$x = golang.template("hello", $v) # redirect var for harder unification
test "${x}" {
#anotherstr => $x,
}
-- OUTPUT --
Vertex: test[hello]