#* * 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 ContentI'm a Velocity template using a layout file!#if( !$layout ) Example LayoutsPrintable layout: same as adding "?layout=Printable.vm" to the URLTable 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 Some sample template contentThis page request was made from: $request.remoteAddrLets count : #foreach( $i in [1..5] )$i #end The author of this example was $author |