Created
August 9, 2012 23:44
-
-
Save prabirshrestha/3309091 to your computer and use it in GitHub Desktop.
cassette hogan pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using Cassette; | |
| using Cassette.HtmlTemplates; | |
| using Cassette.Scripts; | |
| using Cassette.Stylesheets; | |
| /// <summary> | |
| /// Configures the Cassette asset modules for the web application. | |
| /// </summary> | |
| public class CassetteConfiguration : IConfiguration<BundleCollection> | |
| { | |
| private readonly Cassette.TinyIoC.TinyIoCContainer _container; | |
| public CassetteConfiguration(Cassette.TinyIoC.TinyIoCContainer container) | |
| { | |
| _container = container; | |
| } | |
| public void Configure(BundleCollection bundles) | |
| { | |
| bundles.Add<HtmlTemplateBundle>("assets/templates", b => b.Pipeline = _container.Resolve<HoganPipeline>()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment