package main

import (
	"fmt"

	mustache "github.com/pip-services3-gox/pip-services3-expressions-gox/mustache"
)

func main() {
	// conditional construction
	template := mustache.NewMustacheTemplate()
	template.SetTemplate("Hello, {{{NAME}}}{{ #if EXCLAMATION }}!{{/if}}")
	variables := map[string]string{
		"NAME":        "Alex",
		"EXCLAMATION": "",
	}

	result, _ := template.EvaluateWithVariables(variables)

	fmt.Println(result)
}