public static void RenderSparkView <TViewData>(this ResponseContext cxt, TViewData data, string template) { var render = new SparkRender(); string output = render.Render(template, data); cxt.WriteHtml(output); }
internal static void RenderSparkView <TViewData>(this ResponseContext cxt, TViewData data, string template) { string output = SparkRender.Render(template, data); cxt.WriteHtml(output); }
public static void RenderSparkView(this ResponseContext cxt, EnvironmentValidatorRepository repo, string template) { string output = _render.Render("status.html", repo.TakeTemperature(), new KlingerInformation()); cxt.WriteHtml(output); }