Class CKContent
In: lib/cgikit.rb
Parent: CKElement

CKContent is used in nested components. This element tag in the template is replaced with a part of the template of its grandparent component.

Example

 <b><cgikit name=Content /></b>
 Content : CKContent {}
 class NestedComponent < CKComponent
   include CKPartsMaker
 end
 foo
 <cgikit name=Nested>This is the nested component.</cgikit>
 bar
 Nested : NestedComponent {}
 foo
 <b>This is the nested component.</b>
 bar

Another example is available in samples/Examples. In samples/Examples, CKContent element is used in HeaderFooter, which defines the header and footer for all of the appication's pages.

Note: You can locate only one CKContent element in the template of a given component.

Bindings

CKContent doesn't have any attribute.

Methods
run    to_s   
Public Instance methods
run()
to_s()