|
|
Templates
What and where they are
There are 2 parts to the templating system:
1. Template definition files. These are created in /geego and they define the data items that can be udpated/edited and displayed on a particular page or shared portion.
2. rhtml files. These are created in the relevant folder in /app/views as per normal Rails development. By default we put these in /app/views/g_pub but they can go in any views subfolder depending on how you set up /config/routes.rb and your controller for delivering public web pages to visitors.
There are also 2 types of templates:
1. Pages. Generaly these represent actual web pages.
2. Shared portions. These represent data blocks/groups/areas that are shared between multiple web pages. eg. Menus, footers, general grahic images.
|