CSharp · Console
using System;
using HandlebarsDotNet;
public class Program
{
public static void Main()
{
var template1 = Handlebars.Compile(@"{{x}}");
var data1 = new { x = "abc" };
var result1 = template1(data1);
Console.WriteLine(result1.GetType() + " - " + result1);
var template2 = Handlebars.Compile(@"{{x}}");
var data2 = new { x = 1 };
var result2 = template2(data2);
Console.WriteLine(result2.GetType() + " - " + result2);
}
}