Contemplate™ | Web Templating System | ||||||||||
![]() ![]() ![]()
![]() ![]() ![]() |
![]() Content files After setting up your templates, creating content files is relatively easy. The most common type of content file is simply an HTML file that contains one large table:
The only rules for content files are that you lay
out your fields in table cells as shown here, that each field
name begin with the field marker, and that each field have a
unique, alphanumeric name. Beyond that, you can name and organize
your content fields and files in whatever way works best for
you. The default field marker is "# If you prefer, you can delineate your content fields using XML tags rather than an HTML table:
If you then give your content file and .xml extension, Contemplate will process it accordingly. The group tags are optional, but if you use them you can nest them to as many levels as you want to organize your content. In this case, your page definitions would refer to content using slashes between the levels, as in this example: quote=field,quotes.xml,thoreau/drummer. Finally, you can save your content in .txt or other plain-text formats. However, you will only be able to embed the entire file into your templates, since Contemplate won't know how to find smaller pieces of content within the files. |
||||||||||
Contemplate is developed by Arlo Leach. |