Пример #1
0
 public void Setup()
 {
     _syntaxProvider = new DefaultSyntaxProvider(new ParserSettings());
     _viewLoader     = new ViewLoader {
         ViewFolder = new FileSystemViewFolder(ROOT_VIEW_PATH), SyntaxProvider = _syntaxProvider
     };
 }
Пример #2
0
 public SparkViewEngine(ISparkSettings settings)
 {
     Settings             = settings ?? (ISparkSettings)ConfigurationManager.GetSection("spark") ?? new SparkSettings();
     SyntaxProvider       = new DefaultSyntaxProvider(Settings);
     ViewActivatorFactory = new DefaultViewActivator();
 }