Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }