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/16 14:08:57 UTC
svn commit: r496677 - in /tiles/trunk/src/site: apt/quickstart/
apt/quickstart/index.apt site.xml
Author: ddewolf
Date: Tue Jan 16 05:08:56 2007
New Revision: 496677
URL: http://svn.apache.org/viewvc?view=rev&rev=496677
Log:
Beginning the quickstart guide for tiles
Added:
tiles/trunk/src/site/apt/quickstart/
tiles/trunk/src/site/apt/quickstart/index.apt
Modified:
tiles/trunk/src/site/site.xml
Added: tiles/trunk/src/site/apt/quickstart/index.apt
URL: http://svn.apache.org/viewvc/tiles/trunk/src/site/apt/quickstart/index.apt?view=auto&rev=496677
==============================================================================
--- tiles/trunk/src/site/apt/quickstart/index.apt (added)
+++ tiles/trunk/src/site/apt/quickstart/index.apt Tue Jan 16 05:08:56 2007
@@ -0,0 +1,78 @@
+~~ $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
+ -----------
+
+Tiles Quickstart
+
+ This tutoral is inteded to provide a breif tutorial for the
+ <<{{{http://tiles.apache.org}Tiles}}>> framework.
+
+* Introduction
+
+ A Tile is a reusable markup fragment. Often, it is looks like
+ nothing more than a jsp include, but when used within the tiles
+ framework it become an avenue for a consistent look and feel
+ throughout an application.
+
+* Tiling Basics
+
+ Consider the following page markup which is dynamically
+ generated by a web application:
+
+------------------------------------------------------------
+<html>
+ <head><title>Tiles Quickstart</title><head>
+ <body>
+ <div id="header">
+ Welcome to Tiles 101
+ </div>
+
+ <div id="body">
+ Tiles 101 body content.
+ </div>
+
+ <div id=footer">
+ © 2007, Apache Software Foundation
+ </div>
+ </body>
+</html>
+------------------------------------------------------------
+
+ This page can be logically cut up into sections: an outer template,
+ a header, the body, and a footer. If it were the only page of
+ the application, then it would make sense to render all of this
+ content from a single jsp, however, in all likelyhood, it is
+ probably just one of many pages with a similar look and feel.
+
+ This tutorial will walk you through extracting each of these
+ sections into tiles and then optimizing your tile design to
+ reduce code duplication and the amount of configuration
+ required. This will be accomplished in 4 easy steps.
+
+ * {{{abstracting-tiles.html}Abstracting Tiles}}
+
+ * {{{reusing-tiles.html}Reusing Tiles}}
+
+ * {{{implementing-templates.html}Implementing Templates}}
+
+ * {{{removing-configuration.html}Removing Configuration}}
+
Modified: tiles/trunk/src/site/site.xml
URL: http://svn.apache.org/viewvc/tiles/trunk/src/site/site.xml?view=diff&rev=496677&r1=496676&r2=496677
==============================================================================
--- tiles/trunk/src/site/site.xml (original)
+++ tiles/trunk/src/site/site.xml Tue Jan 16 05:08:56 2007
@@ -78,13 +78,16 @@
href="http://issues.apache.org/struts/browse/TILES"/>
</menu>
- <menu name="Quick Links">
+ <menu name="Related Projects">
<item
name="Struts"
href="http://struts.apache.org/"/>
<item
- name="Tiles 2"
- href="/index.html"/>
+ name="Shale"
+ href="http://shale.apache.org/"/>
+ <item
+ name="Velocity"
+ href="http://velocity.apache.org"/>
</menu>
${modules}