Module: html

HTML module enables and eases building web pages using capsules.

Although capsula module already has a mechanism for binding the world of capsules to any external world (see ElementRef capsule), HTML module is provided to further improve and extend this mechanism for one specific external world: the world of HTML.

There are two different ways to build web pages, using templates or using object-oriented APIs. To build web pages using templates consider using Template capsule. On the other hand, if you prefer object-oriented approach, the Element and Text capsules are the right choice. Since one-sided approaches are not always the best, we suggest combining these two capsules to find a perfect mix of templates and object-orientation in your UI code.

For all capsules that have one root HTML element (i.e. one loop), extend the HasRootHTML capsule.

HTML module is not a complete solution for building web pages. It is just a starting point and a basis for building HTML widget libraries.

Since:
  • 0.1.0
Source:

Requires

Classes

Element
HasRootHTML
Template
Text

Namespaces

Errors
ServiceType