示例#1
0
        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);
        }
示例#2
0
        internal static void RenderSparkView <TViewData>(this ResponseContext cxt, TViewData data, string template)
        {
            string output = SparkRender.Render(template, data);

            cxt.WriteHtml(output);
        }
示例#3
0
        public static void RenderSparkView(this ResponseContext cxt, EnvironmentValidatorRepository repo, string template)
        {
            string output = _render.Render("status.html", repo.TakeTemperature(), new KlingerInformation());

            cxt.WriteHtml(output);
        }