Contemplate™ Web Templating System  


 

Latest release

Contemplate 1.3.0
1 Dec 2009
download now!





Tips and tricks

Changing file permissions

Some of the Contemplate components write to files on your web server, so to use these features, you'll have to change the permissions on some of your files and directories. To use the Reporter component, make the contemplate/data/reporter directory world-writable. To use the Formulator, make the contemplate/data/pages.txt and contemplate/data/pages.txt.backup files world-writeable. To use the Flattener, make the flattened directory world-writeable.

Accessing content without a template

If you want to quickly display a piece of content in your content files without merging it into a template, or if you want to access individual pieces of content for display by a dynamic Flash file or other system, you can pass an args value to the Assembler script:

../contemplate/assembler.php?args=field,misc.html,alert_message

You can construct this args value just as you would construct a hard-coded embed tag in a template.

Using server-side scripts

If you include server-side scripts in your content files or templates, they will execute after the page is assembled if they're written in the same language as the version of Contemplate you're using. For example, if you're using the PHP version of Contemplate and you include the script <?php $name="Joe"; ?> in a content file and the script <?php print $name; ?> in your template, your assembled page will include the text "Joe." You may use scripts written in either VBScript or JScript with the ASP version of Contemplate, using either the <% %> (for VBScript only) or <script language="language" runat="Server"></script> tags. With all versions of Contemplate, scripts written in other languages may or may not execute, depending on the capabilities and configuration of your web server.

 
Contemplate is developed by Arlo Leach.