Template

September 18, 2005

A template is a way of defining how content and layout come together to form a page.

2 Types of Templates have been defined:

  • Global
  • Page

Global Templates:
The Global Template defines the layout of the entire page using n Global Containers for a Global Components and 1 Page Container for a the Page Component.

Page Templates:
The Page Template defines the layout of Content inside a page component. This means a Page Template allows content to be positioned in the main body of the page but says nothing about the outer framework (see Global Templates).

An example of a Global Template (yellow) and a Page Template (blue):
Global vs. Page Templates

Technology:
Templates can be as simple as static HTML with placeholders:

<html>
<head>
<title>##TITLE##</title>
</head>
<body>
##CONTENT##
</body>
</html>

OR
for more flexible templating we need a template engine like XSLT or TAL.

Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment