Beispiel #1
0
 public void ProcessRequest(HttpContext context)
 {
     var localPath = context.Request.Url.LocalPath;
     if (string.IsNullOrEmpty(localPath)) return;
     var file = new FileInfo(context.Server.MapPath(localPath));                
     var writer = new SassWriter();
     var output = writer.GetOutput(file);
     context.Response.ContentType = "text/css";
     context.Response.Write(output);
 }
        public void ProcessRequest(HttpContext context)
        {
            var localPath = context.Request.Url.LocalPath;

            if (string.IsNullOrEmpty(localPath))
            {
                return;
            }
            var file   = new FileInfo(context.Server.MapPath(localPath));
            var writer = new SassWriter();
            var output = writer.GetOutput(file);

            context.Response.ContentType = "text/css";
            context.Response.Write(output);
        }