#* * $Id: index.vm,v 1.1 2003/05/27 23:15:39 nbubna Exp $ *#

Main Screen Content

I'm a Velocity template using a layout file!

#if( !$layout )

Example Layouts

Printable layout: same as adding "?layout=Printable.vm" to the URL
Table based layout: same as adding "?layout=TableBased.vm" to the URL
CSS based layout: same as adding "?layout=CSS.vm" to the URL #title( "Default" ) #else #if( $layout == "CSS.vm" ) #title( "CSS 3 Column" ) #elseif( $layout == "TableBased.vm" ) #title( "Table Based" ) #elseif( $layout == "Printable.vm" ) #title( "Printable" ) #end

Currently using: $page_title layout
Notice how the web page title (\$page_title) is set from within the main content, but displayed by the layout in the web page "title".

Return to Default layout #end

Some sample template content

This page request was made from: $request.remoteAddr
Lets count : #foreach( $i in [1..5] )$i #end
The author of this example was $author