Pages Html

NuGet packageOwin.Framework.Pages.Html
GitHub sourceOwinFramework.Pages.Html

Home |  Readme

[IsPage] Attribute

Attach this attribute to a class to identify it as a webpage. To register this page with the router and send requests to it you must get the fluent builder to scan the assembly containing your class.

Example Usage

    [Route("/", Method.Get)]
    internal class HomePage { }

Example Startup Code

    var fluentBuilder = ninject.Get<IFluentBuilder>();
    fluentBuilder.Register(Assembly.GetExecutingAssembly(), t => ninject.Get(t));