#* * Copyright 2003 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * $Id: index.vm,v 1.2 2004/02/20 12:54:14 marino 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