/// <summary> /// Adds Asp.Net Mvc specific IViewEngine implementation. /// </summary> /// <param name="container">An instance of the spark service container to modify</param> public static void ConfigureContainer(ISparkServiceContainer container) { container.SetServiceBuilder<IViewEngine>(c => new SparkViewFactory(c.GetService<ISparkSettings>())); container.SetServiceBuilder<IDescriptorBuilder>(c => new DefaultDescriptorBuilder()); }
/// <summary> /// Adds Asp.Net Mvc specific IViewEngine implementation and the IronPython /// view language factory to a spark service container. /// </summary> /// <param name="container">An instance of the spark service container to modify</param> public static void ConfigureContainer(ISparkServiceContainer container) { container.SetServiceBuilder <IViewEngine>(c => new SparkViewFactory(c.GetService <ISparkSettings>())); container.SetServiceBuilder <ISparkLanguageFactory>(c => new PythonLanguageFactoryWithExtensions()); }
/// <summary> /// Adds Asp.Net Mvc specific IViewEngine implementation and the IronPython /// view language factory to a spark service container. /// </summary> /// <param name="container">An instance of the spark service container to modify</param> public static void ConfigureContainer(ISparkServiceContainer container) { container.SetServiceBuilder<IViewEngine>(c => new SparkViewFactory(c.GetService<ISparkSettings>())); container.SetServiceBuilder<ISparkLanguageFactory>(c => new RubyLanguageFactoryWithExtensions()); }
/// <summary> /// Adds Asp.Net Mvc specific IViewEngine implementation. /// </summary> /// <param name="container">An instance of the spark service container to modify</param> public static void ConfigureContainer(ISparkServiceContainer container) { container.SetServiceBuilder <IViewEngine>(c => new SparkViewFactory(c.GetService <ISparkSettings>())); container.SetServiceBuilder <IDescriptorBuilder>(c => new DefaultDescriptorBuilder()); container.SetServiceBuilder <ICacheServiceProvider>(c => new DefaultCacheServiceProvider()); }