Interfaces

Project

Pages Html

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

Home |  Readme

Allows you to build a website with pages of Html content using templates, regions, layouts and 3rd party packages

[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

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

Example Startup Code

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