-- main.mcl --
import "datetime"
import "golang"
import "sys"

$secplus42 = 42 + $ayear

# note the order of the assignment (year can come later in the code)
$ayear = 60 * 60 * 24 * 365 # is a year in seconds (31536000)

$tmplvalues = struct{time => $secplus42, hello => "world", load => sys.load()}

print "template-0" {
	msg => golang.template("Hello: {{ .Hello }}, 42 sec + 1 year is: {{ .Time }} seconds, aka: {{ datetime_print .Time }} with load {{ .Load.X1 }}", $tmplvalues),
}
-- OUTPUT --
Vertex: print[template-0]
