Exemplo n.º 1
0
        public SparkViewEngine(ISparkSettings settings)
        {
            Settings = settings ?? (ISparkSettings)ConfigurationManager.GetSection("spark") ?? new SparkSettings();

            if (Settings.DefaultLanguage == LanguageType.Oxygene)
            {
                SyntaxProvider = new OxygeneSyntaxProvider(Settings);
            }
            else
            {
                SyntaxProvider = new DefaultSyntaxProvider(Settings);
            }

            ViewActivatorFactory = new DefaultViewActivator();
        }
Exemplo n.º 2
0
 public SparkViewEngine(ISparkSettings settings)
 {
     Settings = settings ?? (ISparkSettings)ConfigurationManager.GetSection("spark") ?? new SparkSettings();
     SyntaxProvider = new DefaultSyntaxProvider(Settings);
     ViewActivatorFactory = new DefaultViewActivator();
 }
Exemplo n.º 3
0
 public SparkViewEngine(ISparkSettings settings)
 {
     Settings             = settings ?? (ISparkSettings)ConfigurationManager.GetSection("spark") ?? new SparkSettings();
     SyntaxProvider       = new DefaultSyntaxProvider(Settings);
     ViewActivatorFactory = new DefaultViewActivator();
 }