Welcome to the Layout Tag Library module of the Jade Sitetree project.
This tag library can provide you with a clean separation between the layout of a JSP page and the
information that is shown on it. The layout is a "template" that is used by the main page to determine
how elements on the page are placed. While cascading style sheets parameterize HTML styles, this library
allows the JSP programmer to parameterize page layouts as well.
Usage of Layout tags has the following features/advantages:
- Creates a clean separation between information - which changes from page to page - and layout -
which is common across multiple pages. This allows the web designer to work on a single file
that will be used to render multiple pages, and the JSP programmer to focus on the elements that
will fill those pages.
- Layouts will layout any element or resource that renders HTML including layouts themselves. There
are no restrictions on how many layouts to use or how they are embedded within one another.
- Allows for dynamic selection of layouts based on the profile of the user or other properties.
- Small, simple, easy to understand.
Examine the following diagram:
The 3 pages contain content: Home, FAQ and What's New. The manner in which content should be presented
is specified in the template. The resulting HTML is content and presentation merged together.
The Layout Tag Library provides a complete solution to the above problem, simplifying JSP page creation
and deployment.
To learn more about the Layout Tag Library start reading the documentation.
To download the most recent release go
here.
|