using PipServices3.Expressions.Mustache;

using System;
using System.Collections.Generic;

namespace ExampleApp
{

    class Program
    {
        static void Main(string[] args)
        {
            // variable
            var template = new MustacheTemplate();
            template.Template = "Hello, {{{NAME}}}{{ #if EXCLAMATION }}!{{/if}}";
            var variables = new Dictionary<string, dynamic>{
                { "NAME", "Alex" },
                {"EXCLAMATION", false }
            };
   
            var result = template.EvaluateWithVariables(variables);
            Console.WriteLine(result);
        }
    }
}