コード例 #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;
 }
コード例 #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;
 }
コード例 #3
0
ファイル: Manager.cs プロジェクト: andrewdavey/knapsack
        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");
        }
コード例 #4
0
ファイル: Manager.cs プロジェクト: ryansroberts/knapsack
        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");
        }
コード例 #5
0
 public KnapsackHttpHandler(Func<ModuleContainer> scriptModuleContainer, Func<ModuleContainer> stylesheetModuleContainer, ICoffeeScriptCompiler coffeeScriptCompiler)
 {
     this.scriptModuleContainer = scriptModuleContainer;
     this.stylesheetModuleContainer = stylesheetModuleContainer;
     this.coffeeScriptCompiler = coffeeScriptCompiler;
 }
コード例 #6
0
ファイル: CompileCoffeeScript.cs プロジェクト: WS-QA/cassette
 public CompileCoffeeScript(ICoffeeScriptCompiler coffeeScriptCompiler, CassetteSettings settings)
 {
     this.coffeeScriptCompiler = coffeeScriptCompiler;
     this.settings             = settings;
 }
コード例 #7
0
 public ScriptModuleContainerBuilder(IsolatedStorageFile storage, string rootDirectory, ICoffeeScriptCompiler coffeeScriptCompiler)
     : base(storage, rootDirectory)
 {
     this.coffeeScriptCompiler = coffeeScriptCompiler;
 }
コード例 #8
0
 public ScriptModuleContainerBuilder(IsolatedStorageFile storage, string rootDirectory, ICoffeeScriptCompiler coffeeScriptCompiler)
     : base(storage, rootDirectory)
 {
     this.coffeeScriptCompiler = coffeeScriptCompiler;
 }
コード例 #9
0
 public KnapsackHttpHandler(Func <ModuleContainer> scriptModuleContainer, Func <ModuleContainer> stylesheetModuleContainer, ICoffeeScriptCompiler coffeeScriptCompiler)
 {
     this.scriptModuleContainer     = scriptModuleContainer;
     this.stylesheetModuleContainer = stylesheetModuleContainer;
     this.coffeeScriptCompiler      = coffeeScriptCompiler;
 }