public string Render(string name, object context) { var json = context is string?(string)context : HandlebarsUtilities.ToJson(context); return((string)_context.Evaluate("Handlebars.templates['" + name + "'](" + json + ");")); }
public string Render(string name, string template, object context) { string json = context is string?(string)context : HandlebarsUtilities.ToJson(context); return(Render(name, template, json)); }
public string Render(string name, string template, object context) { return(Render(name, template, HandlebarsUtilities.ToJson(context))); }