Contemplate™ Web Templating System  


 

Latest release

Contemplate 2.0.2
16 Nov 2011
download now!





Quick start

These are the general steps you'll go through in building a website with Contemplate. If you get stuck, click the headings for more detailed explanations of each step.

  1. Download the software
    You can download the latest version of Contemplate, for PHP, ASP, or Perl, here.

  2. Configure and install the software on your web server
    The included install.txt file contains instructions.

  3. Create the main folders for your site
    At the root level of your site, you'll need the following folders: contemplate (the folder you just downloaded), content, and templates.

  4. Design your templates
    You can create templates using any HTML or text editor; just save them as HTML files in your templates folder.

  5. Add embed tags to your templates
    Embed tags are similar to server-side include tags, and tell Contemplate where in the templates to place dynamic content. Here's an example (view the page source to see the embed tags).

  6. Set up your content files
    The most common type of content files is an HTML file with separate pieces of content laid out in a large table. Here's an example.

  7. Define your pages
    A page definition is a series of name/value pairs telling Contemplate which template and which pieces of content to merge together. For the greatest functionality and ease of maintenance, you can list all your page definitions in one shared text file. Here's an example.

  8. Create links to your pages
    Once you have your page definitions, you can create links that call them up at runtime. The most common type of link looks like this: ../contemplate/assembler.php?page=home. You can also use URL rewriting for more user- and SEO-friendly URLs.

 
Contemplate is developed by Arlo Leach.