public SparkTemplate(IFubuFile file, ISparkViewEngine engine) : base(file) { _full = new Lazy <SparkViewDescriptor>(() => createSparkDescriptor(true)); _partial = new Lazy <SparkViewDescriptor>(() => createSparkDescriptor(false)); _viewEntry = new WatchedSparkEntry(() => engine.CreateEntry(_full.Value)); _partialViewEntry = new WatchedSparkEntry(() => engine.CreateEntry(_partial.Value)); }
public SparkTemplate(IFubuApplicationFiles files, IFubuFile file, ISparkViewEngine engine, SparkEngineSettings settings) : base(file, files) { _settings = settings; _full = new Lazy <SparkViewDescriptor>(() => createSparkDescriptor(true)); _partial = new Lazy <SparkViewDescriptor>(() => createSparkDescriptor(false)); _viewEntry = new WatchedSparkEntry(() => engine.CreateEntry(_full.Value)); _partialViewEntry = new WatchedSparkEntry(() => engine.CreateEntry(_partial.Value)); }