TITLE

Now What?

AUTHOR

Robert

SUMMARY

So you've installed combust, and now you want to make or modify some websites. How do you start?

BASICS

Combust is based on Template Toolkit (http://www.template-toolkit.org). All TT directives can be used in Combust. (With the exception of any that have been disabled for security purposes.)

The TT language has basic flow control and the ability to modify and process data.

Page Concepts

There are three different kinds of document in Combust.

  ----------------------------
  | <title>[%page.title%]    |
  |   </title>               |    --- page style (template) document
  |                          |     
  | #####   ***************  |    ### sidebar component
  | #####   *             *  |
  | #####   *             *  |    *** actual page ("foo.html")
  | #####   *             *  |
  | #####   *             *  |
  | #####   *             *  |
  | #####   *             *  |
  | #####   *             *  |
  | #####   *             *  |
  | #####   *             *  |
  | #####   *             *  |
  | #####   *             *  |
  | #####   *             *  |
  | #####   *             *  |
  | #####   ***************  |
  |                          |
  |                          |
  |   footer                 |
  ----------------------------

The default page style for a site can be set in $SITE/tpl/defaults. That file also contains variables that will be set on every page.

Default Styles

You can also create your own custom styles. Base them off an existing one.

On Style

Please keep your HTML as simple as possible and use the style-template for as much of the layout as possible. You can use TT variables ane BLOCKs to position things. (See how page.sidebar works.)

Eliminate redundancy in the content pages.

Use CSS as much as possible. If the perl.org stylesheet doesn't work for you, you can create your own or extend the perl.org one by including it into your own.

Avoid FONT tags and embedded STYLE= attributes. Do not use excessive tables. Use semantic tags when possible. Aim for content over pretty.

Remember that pages named something.pod are accessible as something.html which can simplify things.

On Development and Comitting...

Combust is hosted out of Subversion (http://subversion.tigris.org). We like subversion, but we're not as used to it as we are CVS. The concept behind the Combust working model is you make and test changes in your local development copy on your local server. When you're ready (and satisfied that they have been tested), you check it in and it propogates to the live site.

Do not check in every single one word change, to see it on the live site. This will make us very unhappy.

Right now, the documentation is a little weak. The best way to learn is to look at examples.


Develooper LLC logo