I don't think this template function should be in any way authoritative, so let's namespace it.
11 lines
181 B
Plaintext
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]
|