Subsections

8. How can webdesigners and webdevelopers collaborate on a CherryPy project

8.1 Introduction

The two common kinds of people involved in a website development are designers and developers. Designers typically take care of the presentation of the pages, and developers take care of the content and the logic behind the web site.

Designers and developers don't use the same tools: designers usually use an HTML editor (for instance, Dreamweaver or Amaya) and developers use a text editor and CherryPy.

8.2 How can they collaborate ?

It's very easy:

The template file will be included in the code by the CherryPy preprocessor (very much like an "#include" directive in C). To find the template files, the preprocessor will look in the same directories as for the other source files (/lib, /src, directories specified with the -I flag, etc.)

8.3 Example

In this example, we'll build a small website with only 2 pages. Each page will be made of a header, a body and a footer. The header and the footer will be the same on both pages, except they will have a "you are here" label.

Let's go step by step

See About this document... for information on suggesting changes.