public void ComposeTemplates(SparkEngineSettings settings) { _templateRegistry.Each(_parsings.Process); var composer = new TemplateComposer<ITemplate>(_parsings); settings.Configure(composer); composer.Compose(_templateRegistry); }
public SparkActivator(ISparkTemplateRegistry templateRegistry, ISparkViewEngine engine, CommonViewNamespaces namespaces, ITemplateDirectoryProvider<ITemplate> directoryProvider, SparkEngineSettings settings) { _templateRegistry = templateRegistry; _engine = engine; _namespaces = namespaces; _directoryProvider = directoryProvider; _settings = settings; }
public SparkPrecompiler(ISparkTemplateRegistry templates, IViewEntryProviderCache providerCache, SparkEngineSettings settings) { _templates = templates; _providerCache = providerCache; _settings = settings; UseActivation(p => Task.Factory.StartNew(() => Precompile(p))); }
public SparkActivator(ISparkTemplateRegistry templateRegistry, ISparkViewEngine engine, CommonViewNamespaces namespaces, ITemplateDirectoryProvider <ITemplate> directoryProvider, SparkEngineSettings settings) { _templateRegistry = templateRegistry; _engine = engine; _namespaces = namespaces; _directoryProvider = directoryProvider; _settings = settings; }
public void ComposeTemplates(SparkEngineSettings settings) { _templateRegistry.Each(_parsings.Process); var composer = new TemplateComposer <ITemplate>(_parsings); settings.Configure(composer); composer.Compose(_templateRegistry); }
public void RegisterTemplates(IFubuApplicationFiles fubuFiles, SparkEngineSettings settings) { fubuFiles.FindFiles(settings.Search).Each(file => _templateRegistry.Register(new Template(file.Path, file.ProvenancePath, file.Provenance))); }