Exemplo n.º 1
0
 public ScriptModuleWriter(TextWriter textWriter, string rootDirectory, Func <string, string> loadSourceFromFile, ICoffeeScriptCompiler coffeeScriptCompiler)
 {
     this.textWriter           = textWriter;
     this.rootDirectory        = rootDirectory;
     this.loadSourceFromFile   = loadSourceFromFile;
     this.coffeeScriptCompiler = coffeeScriptCompiler;
 }
Exemplo n.º 2
0
 public ScriptModuleWriter(TextWriter textWriter, string rootDirectory, Func<string, string> loadSourceFromFile, ICoffeeScriptCompiler coffeeScriptCompiler)
 {
     this.textWriter = textWriter;
     this.rootDirectory = rootDirectory;
     this.loadSourceFromFile = loadSourceFromFile;
     this.coffeeScriptCompiler = coffeeScriptCompiler;
 }
Exemplo n.º 3
0
        public Manager()
        {
            configuration = LoadConfigurationFromWebConfig();

            // Module files will be cached in isolated storage.
            storage = IsolatedStorageFile.GetUserStoreForDomain();

            coffeeScriptCompiler      = new CoffeeScriptCompiler(File.ReadAllText);
            scriptModuleContainer     = BuildScriptModuleContainer(storage, configuration);
            stylesheetModuleContainer = BuildStylesheetModuleContainer(storage, configuration);

            scriptModuleContainer.UpdateStorage("scripts.xml");
            stylesheetModuleContainer.UpdateStorage("stylesheets.xml");
        }
Exemplo n.º 4
0
        public Manager()
        {
            configuration = LoadConfigurationFromWebConfig();

            // Module files will be cached in isolated storage.
            storage = IsolatedStorageFile.GetUserStoreForDomain();

            coffeeScriptCompiler = new CoffeeScriptCompiler(File.ReadAllText);
            scriptModuleContainer = BuildScriptModuleContainer(storage, configuration);
            stylesheetModuleContainer = BuildStylesheetModuleContainer(storage, configuration);

            scriptModuleContainer.UpdateStorage("scripts.xml");
            stylesheetModuleContainer.UpdateStorage("stylesheets.xml");
        }
Exemplo n.º 5
0
 public KnapsackHttpHandler(Func<ModuleContainer> scriptModuleContainer, Func<ModuleContainer> stylesheetModuleContainer, ICoffeeScriptCompiler coffeeScriptCompiler)
 {
     this.scriptModuleContainer = scriptModuleContainer;
     this.stylesheetModuleContainer = stylesheetModuleContainer;
     this.coffeeScriptCompiler = coffeeScriptCompiler;
 }
Exemplo n.º 6
0
 public CompileCoffeeScript(ICoffeeScriptCompiler coffeeScriptCompiler, CassetteSettings settings)
 {
     this.coffeeScriptCompiler = coffeeScriptCompiler;
     this.settings             = settings;
 }
 public ScriptModuleContainerBuilder(IsolatedStorageFile storage, string rootDirectory, ICoffeeScriptCompiler coffeeScriptCompiler)
     : base(storage, rootDirectory)
 {
     this.coffeeScriptCompiler = coffeeScriptCompiler;
 }
 public ScriptModuleContainerBuilder(IsolatedStorageFile storage, string rootDirectory, ICoffeeScriptCompiler coffeeScriptCompiler)
     : base(storage, rootDirectory)
 {
     this.coffeeScriptCompiler = coffeeScriptCompiler;
 }
Exemplo n.º 9
0
 public KnapsackHttpHandler(Func <ModuleContainer> scriptModuleContainer, Func <ModuleContainer> stylesheetModuleContainer, ICoffeeScriptCompiler coffeeScriptCompiler)
 {
     this.scriptModuleContainer     = scriptModuleContainer;
     this.stylesheetModuleContainer = stylesheetModuleContainer;
     this.coffeeScriptCompiler      = coffeeScriptCompiler;
 }