public void CanCompileHandlebarsTemplate()
        {
            var compiler = new HandlebarsCompiler();
            var result = compiler.Compile("Hello {{world}}", new CompileContext());

            var engine = new ScriptEngine();
            engine.ExecuteFile("handlebars.js");
            var source = @"
            (function(){
            var template = new Handlebars.Template();
            template.r = " + result.Output + @";
            return template.render({world:'Andrew'});
            }());";
            var templateRender = engine.Evaluate<string>(source);

            templateRender.ShouldEqual("Hello Andrew");
        }
        public void CanCompileHandlebarsTemplate()
        {
            var settings = new HandlebarsSettings { KnownHelpersOnly = false, KnownHelpers = new List<string> { "t" } };

            var compiler = new HandlebarsCompiler(settings);
            var result = compiler.Compile("Hello {{world}}", new CompileContext());

            var engine = new ScriptEngine();
            engine.ExecuteFile("handlebars.js");
            var source = @"
            (function(){
            var template = new Hogan.template(" + result.Output + @");
            return template({world:'Andrew'});
            }());";
            var templateRender = engine.Evaluate<string>(source);

            templateRender.ShouldEqual("Hello Andrew");
        }