You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2006/12/11 21:48:20 UTC

svn commit: r485867 - in /velocity/tools/trunk/examples/showcase: layout/CSS.vm layout/Default.vm layout/Simple.vm layoutmenu.vm

Author: nbubna
Date: Mon Dec 11 12:48:19 2006
New Revision: 485867

URL: http://svn.apache.org/viewvc?view=rev&rev=485867
Log:
use the CSS layout as the default

Added:
    velocity/tools/trunk/examples/showcase/layout/Simple.vm   (with props)
Removed:
    velocity/tools/trunk/examples/showcase/layout/CSS.vm
Modified:
    velocity/tools/trunk/examples/showcase/layout/Default.vm
    velocity/tools/trunk/examples/showcase/layoutmenu.vm

Modified: velocity/tools/trunk/examples/showcase/layout/Default.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/layout/Default.vm?view=diff&rev=485867&r1=485866&r2=485867
==============================================================================
--- velocity/tools/trunk/examples/showcase/layout/Default.vm (original)
+++ velocity/tools/trunk/examples/showcase/layout/Default.vm Mon Dec 11 12:48:19 2006
@@ -15,15 +15,42 @@
 ## specific language governing permissions and limitations
 ## under the License.
 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+"http://www.w3.org/TR/html4/strict.dtd">
+
+#set( $stylesheet = '/layout/layout.css' )
 #parse( 'header.vm' )
 
-<div id="content">
-$screen_content
+<div class="content">
+	<h1>CSS Layout</h1>
+	<p>$screen_content</p>
+</div>
+
+<div class="content">
+	<h2>Known Issues</h2>
+	<p>This layout fails in IE4.5/Mac. That browser has poor support for CSS absolute positioning, yet it recognizes and executes the CSS @import statement used to hide CSS from broken browsers. Currently, there is no known solution.</p>
+</div>
+
+
+<div id="navAlpha">
+  <p>
+    <div class="menu">
+      #parse( 'toolmenu.vm' )
+    </div>
+  </p>
+  <p>
+  </p>
 </div>
 
-<div id="menu">
-#parse( 'toolmenu.vm' )
-#parse( 'layoutmenu.vm' )
+<div id="navBeta">
+  <div class="menu">
+    #parse( 'layoutmenu.vm' )
+  </div>
+
+	<h2>Nifty Layout Techniques</h2>
+	<p>All sorts of nifty layout can be accomplished using cascading style sheets (CSS). Check out <a href="http://www.bluerobot.com" title="BlueRobot layout Resource">bluerobot.com</a> and the <a href="http://www.bluerobot.com/web/layouts/">Layout Reservoir</A> </p>
 </div>
+
+<!-- BlueRobot was here. -->
 
 #parse( 'footer.vm' )

Added: velocity/tools/trunk/examples/showcase/layout/Simple.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/layout/Simple.vm?view=auto&rev=485867
==============================================================================
--- velocity/tools/trunk/examples/showcase/layout/Simple.vm (added)
+++ velocity/tools/trunk/examples/showcase/layout/Simple.vm Mon Dec 11 12:48:19 2006
@@ -0,0 +1,29 @@
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you 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.
+
+#parse( 'header.vm' )
+
+<div id="content">
+$screen_content
+</div>
+
+<div id="menu">
+#parse( 'toolmenu.vm' )
+#parse( 'layoutmenu.vm' )
+</div>
+
+#parse( 'footer.vm' )

Propchange: velocity/tools/trunk/examples/showcase/layout/Simple.vm
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: velocity/tools/trunk/examples/showcase/layoutmenu.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/layoutmenu.vm?view=diff&rev=485867&r1=485866&r2=485867
==============================================================================
--- velocity/tools/trunk/examples/showcase/layoutmenu.vm (original)
+++ velocity/tools/trunk/examples/showcase/layoutmenu.vm Mon Dec 11 12:48:19 2006
@@ -17,8 +17,8 @@
 #set( $slink = $link.self )
 <h3>Choose a layout:</h3>
 <ul>
-  <li><a href="$slink">Default Layout</a></li>
-  <li><a href="$slink.layout('CSS')">CSS Layout</a></li>
+  <li><a href="$slink">CSS Layout</a></li>
+  <li><a href="$slink.layout('Simple')">Simple Layout</a></li>
   <li><a href="$slink.layout('Table')">Table Layout</a></li>
   <li><a href="$slink.layout('Print')">Print Layout</a></li>
 </ul>