Powered by SmartDoc


Component has 3 parts, template , binding and code . Template is HTML and Code is Ruby script. In binding (ckd file), you can determine types of the elements used in template and the behavior of the elements. According to this definitions, CGIKit binds template to code.

Normally, these files (HTML, ckd file and Ruby script) of component are located in the same directory whose name is the same as component's name. In addition to it, the names of HTML, ckd file and Ruby script are different only in their suffix.

For example, if you want to create "MainPage" component, you name HTML, ckd file, and Ruby script like this.