You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tiles.apache.org by dd...@apache.org on 2007/01/30 22:30:20 UTC

svn commit: r501570 - in /tiles/site: ./ src/site/ src/site/apt/ src/site/apt/quickstart/ src/site/fml/ src/site/resources/ src/site/resources/css/ src/site/xdoc/ src/site/xdoc/dev/

Author: ddewolf
Date: Tue Jan 30 13:30:18 2007
New Revision: 501570

URL: http://svn.apache.org/viewvc?view=rev&rev=501570
Log:
Site updates; More quickstart

Added:
    tiles/site/pom.xml   (with props)
    tiles/site/src/site/apt/download.apt
    tiles/site/src/site/apt/quickstart/implementing-templates.apt
    tiles/site/src/site/apt/quickstart/reusing-tiles.apt
    tiles/site/src/site/resources/
    tiles/site/src/site/resources/css/
    tiles/site/src/site/resources/css/site.css
    tiles/site/src/site/xdoc/dev/
    tiles/site/src/site/xdoc/dev/snapshots.xml   (with props)
Modified:
    tiles/site/src/site/apt/quickstart/abstracting-tiles.apt
    tiles/site/src/site/fml/faq.fml
    tiles/site/src/site/site.xml
    tiles/site/src/site/xdoc/index.xml

Added: tiles/site/pom.xml
URL: http://svn.apache.org/viewvc/tiles/site/pom.xml?view=auto&rev=501570
==============================================================================
--- tiles/site/pom.xml (added)
+++ tiles/site/pom.xml Tue Jan 30 13:30:18 2007
@@ -0,0 +1,168 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * $Id$
+ *
+ * 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.
+ *
+ */
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.tiles</groupId>
+        <artifactId>tiles-master</artifactId>
+        <version>1-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.tiles</groupId>
+    <artifactId>tiles-parent</artifactId>
+    <version>2.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+    <name>Apache Tiles </name>
+    <description>
+       Tiles allows authors to define page fragements which can be assembled
+       into a complete page at runtime.  These fragments, or tiles, can be used 
+       as simple includes in order to reduce the duplication of common page
+       elements or embeded within other tiles to develop a series of reusable
+       templates. These templates streamline the development of a consistent 
+       look and feel across an entire application.
+    </description>
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/tiles/site/</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/tiles/site/</developerConnection>
+        <url>http://svn.apache.org/viewvc/tiles/site/</url>
+    </scm>
+
+    <ciManagement/>
+
+    <build>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <artifactId>maven-site-plugin</artifactId>
+                    <version>2.0-beta-4</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-compiler-plugin</artifactId>
+                    <configuration>
+                        <source>1.5</source>
+                        <target>1.5</target>
+                    </configuration>
+                </plugin>
+          </plugins>
+        </pluginManagement>
+
+        <defaultGoal>site</defaultGoal>
+    </build>
+
+    <reporting>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-project-info-reports-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                    <!--aggregate>true</aggregate-->
+                    <links>
+                        <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
+                        <link>http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api</link>
+                        <link>http://jakarta.apache.org/commons/chain/apidocs</link>
+                        <link>http://jakarta.apache.org/commons/digester/commons-digester-1.6/docs/api</link>
+                        <link>http://jakarta.apache.org/commons/logging/commons-logging-1.0.4/docs/apidocs</link>
+                    </links>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-surefire-report-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+                <configuration>
+                    <!-- TODO:  add a checkstyle config file for tiles -->
+                    <configLocation>http://svn.apache.org/repos/asf/struts/maven/trunk/build/struts_checks.xml
+                    </configLocation>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>jxr-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <artifactId>maven-pmd-plugin</artifactId>
+                <configuration>
+                  <targetJdk>1.5</targetJdk>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                    <doclet>gr.spinellis.umlgraph.doclet.UmlGraphDoc</doclet>
+                    <docletArtifact>
+                        <groupId>gr.spinellis</groupId>
+                        <artifactId>UmlGraph</artifactId>
+                        <version>4.4</version>
+                    </docletArtifact>
+                    <additionalparam>
+                        -inferrel -inferdep -quiet -hide java.*
+                        -collpackages java.util.* -qualify
+                        -postfixpackage -nodefontsize 9
+                        -nodefontpackagesize 7
+                    </additionalparam>
+                </configuration>
+            </plugin>
+        </plugins>
+    </reporting>
+
+    <dependencies/>
+
+    <!-- Needs to be commented out for releases -->
+    <repositories>
+        <repository>
+            <id>apache.snapshots</id>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+        </repository>
+    </repositories>
+    <pluginRepositories>
+        <pluginRepository>
+            <id>apache.snapshots</id>
+            <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </pluginRepository>
+    </pluginRepositories>
+</project>

Propchange: tiles/site/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/site/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Rev

Added: tiles/site/src/site/apt/download.apt
URL: http://svn.apache.org/viewvc/tiles/site/src/site/apt/download.apt?view=auto&rev=501570
==============================================================================
--- tiles/site/src/site/apt/download.apt (added)
+++ tiles/site/src/site/apt/download.apt Tue Jan 30 13:30:18 2007
@@ -0,0 +1,65 @@
+~~ $Id: selenium.apt 478548 2006-11-23 12:32:21Z apetrelli $
+~~
+~~ 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.
+~~
+ ------
+Download Tiles 2.0.0
+ ------
+30 January 2007
+ ------
+
+Download Tiles 2.0.0
+
+  Tiles is distributed in several formats for your convenience.
+
+  You will be prompted for a mirror - if the file is not found on yours, please be patient, as it may take 24
+  hours to reach all mirrors.
+
+  Tiles 2.0.0 is distributed under the {{{http://tiles.apache.org/license.html} Apache License, version 2.0}}.
+
+*-------------------------+---------+----------+-----------+
+|                         | Mirrors | Checksum | Signature |
+*-------------------------+---------+----------+-----------+
+| Tiles 2.0.0 (tar.bz2)     | {{{http://www.apache.org/dyn/closer.cgi/tiles/binaries/tiles-2.0.0-bin.tar.bz2} tiles-2.0.0-bin.tar.bz2}} | {{{http://www.apache.org/dist/tiles/binaries/tiles-2.0.0-bin.tar.bz2.md5} tiles-2.0.0-bin.tar.bz2.md5}} | {{{http://www.apache.org/dist/tiles/binaries/tiles-2.0.0-bin.tar.bz2.asc} tiles-2.0.0-bin.tar.bz2.asc}} |
+*-------------------------+---------+----------+-----------+
+| Tiles 2.0.0 (tar.gz)      | {{{http://www.apache.org/dyn/closer.cgi/tiles/binaries/tiles-2.0.0-bin.tar.gz} tiles-2.0.0-bin.tar.gz}} | {{{http://www.apache.org/dist/tiles/binaries/tiles-2.0.0-bin.tar.gz.md5} tiles-2.0.0-bin.tar.gz.md5}} | {{{http://www.apache.org/dist/tiles/binaries/tiles-2.0.0-bin.tar.gz.asc} tiles-2.0.0-bin.tar.gz.asc}} |
+*-------------------------+---------+----------+-----------+
+| Tiles 2.0.0 (zip)         | {{{http://www.apache.org/dyn/closer.cgi/tiles/binaries/tiles-2.0.0-bin.zip} tiles-2.0.0-bin.zip}} | {{{http://www.apache.org/dist/tiles/binaries/tiles-2.0.0-bin.zip.md5} tiles-2.0.0-bin.zip.md5}} | {{{http://www.apache.org/dist/tiles/binaries/tiles-2.0.0-bin.zip.asc} tiles-2.0.0-bin.zip.asc}} |
+*-------------------------+---------+----------+-----------+
+
+  Tiles has also been published to the public Maven repository.  Declare your dependency on Tiles 2.0.0 with
+  the following dependency declaration:
+
+----------------------------------------
+  <dependency>
+    <groupId>org.apache.tiles</groupId>
+    <artifactId>tiles-core</artifactId>
+    <version>2.0-SNAPSHOT</version>
+  </dependency>
+----------------------------------------
+
+* System {Requirements}
+
+*----------------------+---------------------------------------------------------------------------------------------+
+| <<JDK>>              | 1.5 or above.  RetroTranslator versions for 1.4 and above will be made available eventually.
+*----------------------+---------------------------------------------------------------------------------------------+
+| <<Servlet>>          | 2.4 or above
+*----------------------+---------------------------------------------------------------------------------------------+
+| <<JSP>>              | 2.0 or Above
+*----------------------+---------------------------------------------------------------------------------------------+
+

Modified: tiles/site/src/site/apt/quickstart/abstracting-tiles.apt
URL: http://svn.apache.org/viewvc/tiles/site/src/site/apt/quickstart/abstracting-tiles.apt?view=diff&rev=501570&r1=501569&r2=501570
==============================================================================
--- tiles/site/src/site/apt/quickstart/abstracting-tiles.apt (original)
+++ tiles/site/src/site/apt/quickstart/abstracting-tiles.apt Tue Jan 30 13:30:18 2007
@@ -30,32 +30,35 @@
  that we want to generate in our web application.  In
  this step, we will abstract tiles from that page.
 
-
  A Tile is a reusable markup fragment. The first step of using
  tiles is extracting the fragments which are common to the
  application out of the markup.  This allows these components
  to be reused.
 
  In our page, there are two common elements, the header and
- the fotter.  Let's abstract those out into tiles.  The
+ the fotter.  Let's abstract those out into tiles and utilize
+ the tiles tag library to invoke them.  The
  following markup represents the necessary changes to our
  initial markup.
 
+  /fragments/header.jsp
+
 ------------------------------------------------------------
 <div id="header">
   Welcome to Tiles 101
 </div>
 ------------------------------------------------------------
-[Header, /fragments/header.jsp]
+
+  /fragments/footer.jsp
 
 ------------------------------------------------------------
 <div id=footer">
   &#169; 2007, Apache Software Foundation
 </div>
 ------------------------------------------------------------
-[Footer, /fragments/footer.jsp]
-
 
+  /101/index.jsp
+  
 ------------------------------------------------------------
 <html>
   <head><title>Tiles Quickstart</title><head>
@@ -81,19 +84,22 @@
 
  Let's update our tile and template:
 
+  /fragments/header.jsp
+
 ------------------------------------------------------------
 <div id="header">
-  Welcome to <tiles:getAsString name="welcome"/>
+  Welcome to <tiles:getAsString name="className"/>
 </div>
 ------------------------------------------------------------
-[Header, /fragments/header.jsp]
 
+  /101/index.jsp
+  
 ------------------------------------------------------------
 <html>
   <head><title>Tiles Quickstart</title><head>
   <body>
     <tiles:insertTemplate path="/fragments/header.jsp">
-      <tiles:putAttribute name="welcome" value="Tiles 101"/>
+      <tiles:putAttribute name="className" value="Tiles 101"/>
     </tiles:insertTemplate>
 
     <div id="body">
@@ -104,9 +110,6 @@
   </body>
 </html>
 ------------------------------------------------------------
-[Template, index.jsp]
-
-
 
 
    * Previous Quickstart Pages

Added: tiles/site/src/site/apt/quickstart/implementing-templates.apt
URL: http://svn.apache.org/viewvc/tiles/site/src/site/apt/quickstart/implementing-templates.apt?view=auto&rev=501570
==============================================================================
--- tiles/site/src/site/apt/quickstart/implementing-templates.apt (added)
+++ tiles/site/src/site/apt/quickstart/implementing-templates.apt Tue Jan 30 13:30:18 2007
@@ -0,0 +1,37 @@
+~~ $Id$
+~~
+~~ 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.
+~~
+         -----------
+         Tiles Quickstart : Step 3, Implementing Templates
+         -----------
+
+Implementing Templates
+
+   * Previous Quickstart Pages
+
+     ** {{{index.html}Introduction }}
+
+     ** {{{abstracting-templates.html}Abstracting Templates }}
+     
+     ** {{{reusing-tiles.html}Reusing Tiles}}
+
+   * Next Quickstart Pages
+
+     ** {{{removing-configuration.html}Removing Configuration}}
+

Added: tiles/site/src/site/apt/quickstart/reusing-tiles.apt
URL: http://svn.apache.org/viewvc/tiles/site/src/site/apt/quickstart/reusing-tiles.apt?view=auto&rev=501570
==============================================================================
--- tiles/site/src/site/apt/quickstart/reusing-tiles.apt (added)
+++ tiles/site/src/site/apt/quickstart/reusing-tiles.apt Tue Jan 30 13:30:18 2007
@@ -0,0 +1,137 @@
+~~ $Id$
+~~
+~~ 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.
+~~
+         -----------
+         Tiles Quickstart : Step 2, Reusing Tiles
+         -----------
+
+Reusing Tiles
+
+* Configuring Tiles
+
+  After deploying our application, the Dean of the School of Tiles
+  informs us that because of an upcoming event, we must change the
+  header of the application for the next two weeks.  Because we
+  know we will need to revert these changes in a couple of weeks
+  we have an itch to implement this in a different template and
+  change the references from header.jsp to header-event.jsp.  Realizing
+  that we now have 32 pages for Tiles 101, which utilize the header
+  template we created, we decide to look into figuring out how to
+  accomplish this so that when we have to revert back to the
+  original header we don't need find and replace content throughout
+  all 32 jsps. Here's what we find:
+
+  By adding a simple tiles.xml file, we can configure any templates
+  we have created into something called a definition.  Definitions
+  can then be included in the same way the attributes have been.
+
+  /101/index.jsp
+  
+------------------------------------------------------------
+<html>
+  <head><title>Tiles Quickstart</title><head>
+  <body>
+    <tiles:insertDefinition name="header">
+      <tiles:putAttribute name="className" value="Tiles 101"/>
+    </tiles:insertDefinition>
+
+    <div id="body">
+      Tiles 101 body content.
+    </div>
+
+    <tiles:insertTemplate path="/fragments/footer.jsp"/>
+  </body>
+</html>
+------------------------------------------------------------
+
+  /WEB-INF/tiles.xml
+
+------------------------------------------------------------
+<!DOCTYPE tiles-definitions PUBLIC
+       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
+       "http://struts.apache.org/dtds/tiles-config_2_0.dtd">
+
+<tiles-definitions>
+  <definition name="header" template="/fragments/header.jsp">
+	  <put name="className" value="Default Class Name" />
+  </definition>
+</tiles-definitions>
+------------------------------------------------------------
+
+* Parameterizing and Extending Definitions
+
+  Realizing how easy that was, and noticing that the DTD
+  referenced a put element, we decide to look a little further
+  to investigate whether or not we can remove the put attribute
+  tag from our jsps. We've found it very tedious to have to
+  remember to put that in each time.
+
+  Sure enough, we find that if we add a new definition,
+  tell it to extend the first, and provide the name
+  of the class, we can utilize that tiles - preconfigured
+  with the class name, from in our jsps.
+
+   /101/index.jsp
+
+------------------------------------------------------------
+<html>
+  <head><title>Tiles Quickstart</title><head>
+  <body>
+    <tiles:insertDefinition name="header-101"/>
+
+    <div id="body">
+      Tiles 101 body content.
+    </div>
+
+    <tiles:insertTemplate path="/fragments/footer.jsp"/>
+  </body>
+</html>
+------------------------------------------------------------
+
+  /WEB-INF/tiles.xml
+
+------------------------------------------------------------
+<!DOCTYPE tiles-definitions PUBLIC
+       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
+       "http://struts.apache.org/dtds/tiles-config_2_0.dtd">
+
+<tiles-definitions>
+  <definition name="header" template="/fragments/header.jsp">
+	  <put name="className" value="Default Class Name" />
+  </definition>
+
+  <definition name="header-101" extends="header">
+	  <put name="className" value="Tiles 101" />
+  </definition>
+</tiles-definitions>
+------------------------------------------------------------
+
+
+   * Previous Quickstart Pages
+
+     ** {{{index.html}Introduction }}
+
+     ** {{{abstracting-tiles.html}Abstracting Tiles }}
+
+   * Next Quickstart Pages
+
+     ** {{{implementing-templates.html}Implementing Templates}}
+
+     ** {{{removing-configuration.html}Removing Configuration}}
+

Modified: tiles/site/src/site/fml/faq.fml
URL: http://svn.apache.org/viewvc/tiles/site/src/site/fml/faq.fml?view=diff&rev=501570&r1=501569&r2=501570
==============================================================================
--- tiles/site/src/site/fml/faq.fml (original)
+++ tiles/site/src/site/fml/faq.fml Tue Jan 30 13:30:18 2007
@@ -25,8 +25,36 @@
 // ======================================================================== 78
 -->
 <faqs title="Tiles 2 FAQ">
+    <part id="overview">
+        <title>Tiles</title>
+         <faq id="changes">
+            <question>Is Tiles2 compatible with the version of tiles I've been using with Struts?</question>
+            <answer>
+                <p>
+                Perhaps, but probaly not.  Tiles2 is an ancestor of the original tiles
+                which grew out of the Struts project.  This version is a total redesign
+                which makes the framework easier to embed within frameworks such as
+                Struts and Shale.
+                </p>
+                <p>
+                    If you're a casual user, you'll probably only notice the differences
+                    in the tag libraries.  Many of them have been renamed for clarity sake
+                    and you can upgrade to Tiles2 by simple doing a global find and replace.
+                </p>
+                <p>
+                    If you're integrating Tiles into a framework or using it for more advanced
+                    features, then you'll probably notice a world of difference.  Tiles now runs
+                    as a container which encapsulates it's feature set and there is a much
+                    cleaner API.  If you find that this api doesn't suffice for you, please
+                    hop on the developer list and help us flush out the next generation of
+                    Tiles!
+                </p>
+            </answer>
+        </faq>
+    </part>
     <part id="taglib-faq">
         <title>Tiles 2 Taglib</title>
+
         <faq id="insert">
             <question>What happened to <code>&amp;lt;tiles:insert&amp;gt;</code> tag?
             </question>
@@ -38,8 +66,8 @@
                   insert a template,</li>
                   <li><code>&amp;lt;tiles:insertDefinition&amp;gt;</code>, to
                   insert a definition,</li>
-                  <li><code>&amp;lt;tiles:attribute&amp;gt;</code>, to define an
-                  attribute.</li>
+                  <li><code>&amp;lt;tiles:insertAttribute&amp;gt;</code>, to insert an
+                  attribute (which itself can be a definition, a template, or a string).</li>
                 </ul>
                 <p>Notice that the <code>type</code> attribute is not present in
                 any of these tags: it was removed because the type is implicit

Added: tiles/site/src/site/resources/css/site.css
URL: http://svn.apache.org/viewvc/tiles/site/src/site/resources/css/site.css?view=auto&rev=501570
==============================================================================
--- tiles/site/src/site/resources/css/site.css (added)
+++ tiles/site/src/site/resources/css/site.css Tue Jan 30 13:30:18 2007
@@ -0,0 +1,37 @@
+a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover {
+  background: none;
+  padding-right: 0;
+}
+
+body ul {
+  list-style-type: square;
+}
+
+#downloadbox {
+  float: right;
+  margin-left: 2em;
+  padding-left: 1em;
+  padding-right: 1em;
+  padding-bottom: 1em;
+  border: 1px solid #999;
+  background-color: #eee;
+  width: 17.5em;
+}
+
+#downloadbox h5 {
+  color: #000;
+  margin: 0;
+  border-bottom: 1px solid #aaaaaa;
+  font-size: smaller;
+  padding: 0;
+  margin-top: 1em;
+}
+
+#downloadbox p {
+  margin-top: 1em;
+  margin-bottom: 0;
+}
+
+#downloadbox a {
+    white-space: nowrap;
+}

Modified: tiles/site/src/site/site.xml
URL: http://svn.apache.org/viewvc/tiles/site/src/site/site.xml?view=diff&rev=501570&r1=501569&r2=501570
==============================================================================
--- tiles/site/src/site/site.xml (original)
+++ tiles/site/src/site/site.xml Tue Jan 30 13:30:18 2007
@@ -48,7 +48,11 @@
             <item
                    name="Volunteers"
                    href="/volunteers.html"/>
+            <item
+                   name="Download"
+                   href="/download.html"/>
         </menu>
+        
         <menu name="Documentation">
             <item   
                     name="Quickstart"
@@ -68,6 +72,12 @@
             <item
                     name="Selenium Testing"
                     href="/selenium.html"/>
+        </menu>
+
+        <menu name="Developers">
+            <item
+                    name="Snapshots"
+                    href="/dev/snapshots.html"/>
         </menu>
         <menu name="Support">
             <item

Added: tiles/site/src/site/xdoc/dev/snapshots.xml
URL: http://svn.apache.org/viewvc/tiles/site/src/site/xdoc/dev/snapshots.xml?view=auto&rev=501570
==============================================================================
--- tiles/site/src/site/xdoc/dev/snapshots.xml (added)
+++ tiles/site/src/site/xdoc/dev/snapshots.xml Tue Jan 30 13:30:18 2007
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * $Id$
+ *
+ * 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.
+ */
+-->
+<document>
+
+    <properties>
+        <title>Apache Tiles 2</title>
+    </properties>
+
+    <body>
+        <section name="Tiles 2">
+        <subsection name="Snapshots">
+
+        <p>Looking for snapshot builds of the latest version of Tiles?
+           Snapshots are occasionally published to Apache's Maven 2 snapshot
+           repository, which can be accessed with the following configuration:</p>
+
+        <source>
+        <![CDATA[
+          <repository>
+              <id>apache.snapshots</id>
+              <name>Apache Maven Snapshot Repository</name>
+              <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+          </repository>
+        ]]>
+        </source>
+
+        <p>After configuring the repository, declare a dependency on
+        Tiles 2:</p>
+
+        <source><![CDATA[
+          <dependency>
+              <groupId>org.apache.tiles</groupId>
+              <artifactId>tiles-core</artifactId>
+              <version>2.0-SNAPSHOT</version>
+          </dependency>
+        ]]>
+        </source>
+
+    <p>If you are not using Maven 2, you can find a recent development
+    snapshot of tiles-core.jar <a
+    href="http://people.apache.org/maven-snapshot-repository/org/apache/struts/tiles/tiles-core/">
+    here</a>, or a nightly build, <a
+    href="http://people.apache.org/builds/struts/nightlies/tiles/">here</a>.</p>
+
+   <p>You can see Tiles 2 in action by downloading a snapshot of the 'tiles-test' webapp,
+   <a href="http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/tiles/tiles-test/2.0-SNAPSHOT/">
+   here</a>.</p>
+
+    </subsection>
+</section>
+</body>
+
+</document>

Propchange: tiles/site/src/site/xdoc/dev/snapshots.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/site/src/site/xdoc/dev/snapshots.xml
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Rev

Modified: tiles/site/src/site/xdoc/index.xml
URL: http://svn.apache.org/viewvc/tiles/site/src/site/xdoc/index.xml?view=diff&rev=501570&r1=501569&r2=501570
==============================================================================
--- tiles/site/src/site/xdoc/index.xml (original)
+++ tiles/site/src/site/xdoc/index.xml Tue Jan 30 13:30:18 2007
@@ -31,77 +31,62 @@
 
         <section name="Tiles 2">
 
-                <p><strong><a href="http://tiles.apache.org">Apache Tiles</a></strong>
-                is a templating framework built to simplfy the development of web
-                application user interfaces.</p>
-
-                <p>Tiles allows authors to define page fragements which can be assembled
-                into a complete page at runtime.  These fragments, or tiles, can be used 
-                as simple includes in order to reduce the duplication of common page
-                elements or embeded within other tiles to develop a series of reusable
-                templates. These templates streamline the development of a consistent 
-                look and feel across an entire application.</p>
-
-                <p>Tiles grew in popularity as a component of the popular 
-                <a href="http://struts.apache.org">Struts</a> framework.  It has since
-                been extracted from Struts and is now integrated with various frameworks,
-                such as <a href="http://struts.apache.org">Struts2</a>, 
-                <a href="http://shale.apache.org">Shale</a>, and 
-                <a href="http://velocity.apache.org">Velocity</a>.</p>
-
-            <a name="downloads"/>
-            <subsection name="Downloads">
-
-                <p>As new top level project, Tiles does not yet have any official
-                releases.  However, snapshots are occasionally published to
-                Apache's Maven 2 snapshot repository, which can be accessed with
-                the following configuration:</p>
-
-                <source><![CDATA[
-                  <repository>
-                      <id>apache.snapshots</id>
-                      <name>Apache Maven Snapshot Repository</name>
-                      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
-                  </repository>
-                ]]>
-                </source>
-
-                <p>After configuring the repository, declare a dependency on
-                Tiles 2:</p>
-
-                <source><![CDATA[
-                  <dependency>
-                      <groupId>org.apache.tiles</groupId>
-                      <artifactId>tiles-core</artifactId>
-                      <version>2.0-SNAPSHOT</version>
-                  </dependency>
-                ]]>
-                </source>
-
-            <p>If you are not using Maven 2, you can find a recent development
-            snapshot of tiles-core.jar <a
-            href="http://people.apache.org/maven-snapshot-repository/org/apache/struts/tiles/tiles-core/">
-            here</a>, or a nightly build, <a
-            href="http://people.apache.org/builds/struts/nightlies/tiles/">here</a>.</p>
-
-           <p>You can see Tiles 2 in action by downloading a snapshot of the 'tiles-test' webapp,
-           <a href="http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/tiles/tiles-test/2.0-SNAPSHOT/">
-           here</a>.</p>
-
-            </subsection>
-
-            <a name="requirements"/>
-            <subsection name="Requirements">
-
-                <ul>
-                    <li>Java Runtime Environment (JRE) 1.5 or later. (1.4 support provided seperately)</li>
-                    <li>Servlet API 2.3 or later (suggested 2.4 or later).</li>
-                    <li>JavaServer Pages 1.2 or later, but you need JSP 2.0 or
-                    later to use EL.</li>
-                </ul>
-
-            </subsection>
-        </section>
-    </body>
+        <div id="downloadbox">
+          <h5>Get Tiles</h5>
+          <span style="display: block; text-align: right; font-size: smaller">Released: Feb x, 2007</span>
+          <p><a href="download.html">
+               <img valign="top" src="images/folder-open.gif" border="0" alt="" title="download"></img>
+               Tiles 2.0.0
+             </a>
+             <small>(x.xKb)</small>
+             <span style="font-size: smaller">
+             <ul>
+              <li><a href="download.html">Download</a></li>
+              <li><a href="download.html#maven-repo">Maven Repository</a></li>
+              <li><a href="download.html#docs">Documentation</a></li>
+              <li><a href="release-notes.html">Release Notes</a></li>
+             </ul>
+             </span>
+          </p>
+            
+          <p><a href="download.html">
+              <img valign="top" src="images/folder-open.gif" border="0" alt="" title="download"></img>
+              Tiles Showcase 2.0.0
+            </a>
+            <small>(x.xMb)</small>
+            <span style="font-size: smaller">
+             <ul>
+              <li><a href="download.html">Download</a></li>
+              <li><a href="download.html#docs">Documentation</a></li>
+              <li><a href="release-notes.html">Release Notes</a></li>
+             </ul>
+            </span>
+            <span style="font-size: smaller">
+              <br></br>
+            </span>
+          </p>
+        </div>
+
+        <p><strong><a href="http://tiles.apache.org">Apache Tiles</a></strong>
+        is a templating framework built to simplfy the development of web
+        application user interfaces.</p>
+
+        <p>Tiles allows authors to define page fragements which can be assembled
+        into a complete page at runtime.  These fragments, or tiles, can be used
+        as simple includes in order to reduce the duplication of common page
+        elements or embeded within other tiles to develop a series of reusable
+        templates. These templates streamline the development of a consistent
+        look and feel across an entire application.</p>
+
+        <p>Tiles grew in popularity as a component of the popular
+        <a href="http://struts.apache.org">Struts</a> framework.  It has since
+        been extracted from Struts and is now integrated with various frameworks,
+        such as <a href="http://struts.apache.org">Struts2</a>,
+        <a href="http://shale.apache.org">Shale</a>, and
+        <a href="http://velocity.apache.org">Velocity</a>.</p>
+
+    <a name="downloads"/>
+</section>
+</body>
 
 </document>