Interfaces

Project

Pages Html

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

Home |  Readme

Modules reference | The OWIN FRamework

Module Elements

Module elements define a module name and an asset deployment mechanism for all of the page elements that use this module.

Attribute Example

Since modules have no real functionallity, you will almost always create them by decorating an empty class with attributes as illustrated below:


In this use case the [IsModule()] attribute has properties that specify how the assets for elements in this module are deployed.

It is possible to create a class that inherits from the built-in Module class, but there is very little point in doing this.

Adding a Module to a Package

If you want to define a module within your package (which is generally a good idea if your package contains any Css or Javascript assets), you can use the BuildUpPackage method of the fluent builder. This technique is very similar to all of the other BuildUpXxxx methods that you use to build your package.