public void Execute(IHttpContext context)
        {
            context.Response.ContentType = "text/html";
            using (var output = new StreamWriter(context.Response.OutputStream))
            {
                var helper = new NVelocityHelper(context, output);

                if (!String.IsNullOrEmpty(layoutFileName))
                    helper.RenderLayout(layoutFileName, viewFileName, model);
                else
                    helper.Render(viewFileName, model);
            }
        }
        public void Execute(IHttpContext context)
        {
            context.Response.ContentType = "text/html";
            using (var output = new StreamWriter(context.Response.OutputStream))
            {
                var helper = new NVelocityHelper(context, output);

                if (!String.IsNullOrEmpty(layoutFileName))
                {
                    helper.RenderLayout(layoutFileName, viewFileName, model);
                }
                else
                {
                    helper.Render(viewFileName, model);
                }
            }
        }