CKPartsMaker

Class/Module:
Module
In:
lib/cgikit.rb

Description

CKPartsMaker is a Ruby module to deal with a component as parts of web page. A component which includes this module isn’t displayed even if CGIKit recieves requests to show it as the target component ( CKApplication#target ).

A name of parts component is recommended to have "Parts" at the end of the name to distinguish it from page component.

Usage

Subclass of CKComponent includes CKPartsMaker.

 class AnyParts < CKComponent
   include CKPartsMaker
   ...
 end

Attributes

substitute_page [RW]
When CGIKit recieves requests to show component parts, CGIKit shows the page specified by this attribute. A main page of an application is displayed when the value is not defined.