public FileConcatenationCompiler(IContentCompiler compiler) { if (compiler == null) { throw new ArgumentNullException("compiler"); } _compiler = compiler; }
public void Init(HttpApplication context) { var cacheType = ConfigurationManager.AppSettings["SassAndCoffee.Cache"]; context.PostResolveRequestCache += (o, e) => { var app = o as HttpApplication; _compiler = _compiler ?? initializeCompilerFromSettings(cacheType); _handler = _handler ?? new CompilableFileHandler(_compiler); if (!_compiler.CanCompile(new VirtualPathCompilerFile(app.Request.Path))) { return; } app.Context.RemapHandler(_handler); }; }
public FileConcatenationCompiler(IContentCompiler compiler) { _compiler = compiler; }
public CompilableFileHandler(IContentCompiler contentCompiler) { _contentCompiler = contentCompiler; }