Powered by SmartDoc

Basic Concept

In CGIKit, web pages are created by components, which uses some elements. So, elements and components play an important role.

Component is consisted of template, ckd file and Ruby script. By using these three parts, components are changed to HTML. In CGI programs, it often occurs that HTML is embedded in program. This architttttecture makes it possible to separate View(template) and Logic(Ruby script).

Element is something like HTML tag peculiar to CGIKit. Elements are used in template of components. The elements used in template are outputed as HTML by binding the elements to Ruby's methods or objects.

Development in CGIKit is that of components by combining CGIKit elements and Ruby's methods/objects. CGIKit provides many varied elements. One shows Ruby object simply. Another judges its condition and decides whether it shows HTML or not.