velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r508119 - in /velocity/tools/trunk/examples/showcase: ./ WEB-INF/src/
Date Thu, 15 Feb 2007 20:12:19 GMT
Author: nbubna
Date: Thu Feb 15 12:12:18 2007
New Revision: 508119

URL: http://svn.apache.org/viewvc?view=rev&rev=508119
Log:
put all common demo text under the same root key

Modified:
    velocity/tools/trunk/examples/showcase/WEB-INF/src/resources.properties
    velocity/tools/trunk/examples/showcase/alternator.vm
    velocity/tools/trunk/examples/showcase/browser.vm
    velocity/tools/trunk/examples/showcase/context.vm
    velocity/tools/trunk/examples/showcase/cookies.vm
    velocity/tools/trunk/examples/showcase/date.vm
    velocity/tools/trunk/examples/showcase/esc.vm
    velocity/tools/trunk/examples/showcase/import.vm
    velocity/tools/trunk/examples/showcase/link.vm
    velocity/tools/trunk/examples/showcase/lists.vm
    velocity/tools/trunk/examples/showcase/math.vm
    velocity/tools/trunk/examples/showcase/mill.vm
    velocity/tools/trunk/examples/showcase/number.vm
    velocity/tools/trunk/examples/showcase/pager.vm
    velocity/tools/trunk/examples/showcase/params.vm
    velocity/tools/trunk/examples/showcase/render.vm
    velocity/tools/trunk/examples/showcase/search.vm
    velocity/tools/trunk/examples/showcase/sorter.vm
    velocity/tools/trunk/examples/showcase/text.vm

Modified: velocity/tools/trunk/examples/showcase/WEB-INF/src/resources.properties
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/WEB-INF/src/resources.properties?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/WEB-INF/src/resources.properties (original)
+++ velocity/tools/trunk/examples/showcase/WEB-INF/src/resources.properties Thu Feb 15 12:12:18
2007
@@ -49,7 +49,7 @@
 tools.search = SearchTool
 tools.sorter = SortTool
 
-## VM_global_library.vm
+## demo common resources
 demo.function = Function
 demo.result = Demo Result
 demo.clear = Clear All
@@ -57,8 +57,6 @@
 demo.try = Try it!
 demo.tryAgain = Try Again!
 demo.tryAnything = Try any code out here.
-
-## demo common resources
-demos.thisPage = This page demonstrates functions of the {0}
-demos.mainExampleHeader = Example Display
-demos.mainResultsIntro = Your code returned the following results
+demo.thisPage = This page demonstrates functions of the {0}
+demo.mainExampleHeader = Example Display
+demo.mainResultsIntro = Your code returned the following results

Modified: velocity/tools/trunk/examples/showcase/alternator.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/alternator.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/alternator.vm (original)
+++ velocity/tools/trunk/examples/showcase/alternator.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'AlternatorTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'AlternatorTool' true )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'AlternatorTool' true )").
 The <a href="#fullDemo">example</a> at the bottom is a good demonstration of
the
 difference between an automatic #doclink( 'Alternator' true ) and a manual one.
 </p>
@@ -51,7 +51,7 @@
 </table>
 
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
 <form method="post" action="$link.self.anchor('fullDemo')">
 <textarea name="demo" rows="6" cols="65">##
 #if( $params.demo )##
@@ -66,14 +66,14 @@
 #end##
 </textarea>
   <br>
-  <input type="submit" value="Try it!">
+  <input type="submit" value="$demo.try">
   #if( $params.layout )
   <input type="hidden" name="layout" value="$params.layout">
   #end
 </form>
 
 #if( $params.demo )
-$demos.mainResultsIntro:
+$demo.mainResultsIntro:
 <pre>
   $render.eval($params.demo)
 </pre>

Modified: velocity/tools/trunk/examples/showcase/browser.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/browser.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/browser.vm (original)
+++ velocity/tools/trunk/examples/showcase/browser.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'BrowserSniffer' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'BrowserSnifferTool' false )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'BrowserSnifferTool' false )").
 </p>
 
 #demoTableStart()

Modified: velocity/tools/trunk/examples/showcase/context.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/context.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/context.vm (original)
+++ velocity/tools/trunk/examples/showcase/context.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'ContextTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'ContextTool' false )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'ContextTool' false )").
 </p>
 
 #demoTableStart()
@@ -44,7 +44,7 @@
 </table>
 
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
 <form method="post" action="$link.self.anchor('fullDemo')">
 <textarea name="demo" rows="6" cols="65">##
 #if( $params.demo )##
@@ -56,14 +56,14 @@
 #end##
 </textarea>
   <br>
-  <input type="submit" value="Try it!">
+  <input type="submit" value="$demo.try">
   #if( $params.layout )
   <input type="hidden" name="layout" value="$params.layout">
   #end
 </form>
 
 #if( $params.demo )
-$demos.mainResultsIntro:
+$demo.mainResultsIntro:
 <pre>
   $render.eval($params.demo)
 </pre>

Modified: velocity/tools/trunk/examples/showcase/cookies.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/cookies.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/cookies.vm (original)
+++ velocity/tools/trunk/examples/showcase/cookies.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'CookieTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'CookieTool' false )").  Remember,
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'CookieTool' false )").  Remember,
 when adding a cookie, it is <b>not</b> added to the same request which does the
 adding.  This means to see a cookie you've added, you must add it, and then refresh
 the page again.
@@ -47,7 +47,7 @@
 </table>
 
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
 <form method="post" action="$link.self.anchor('fullDemo')">
 <textarea name="demo" rows="3" cols="65">##
 #if( $params.demo )##
@@ -59,14 +59,14 @@
 #end##
 </textarea>
   <br>
-  <input type="submit" value="Try it!">
+  <input type="submit" value="$demo.try">
   #if( $params.layout )
   <input type="hidden" name="layout" value="$params.layout">
   #end
 </form>
 
 #if( $params.demo )
-$demos.mainResultsIntro:
+$demo.mainResultsIntro:
 <pre>
   $render.eval($params.demo)
 </pre>

Modified: velocity/tools/trunk/examples/showcase/date.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/date.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/date.vm (original)
+++ velocity/tools/trunk/examples/showcase/date.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'DateTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'DateTool' true )").  As the DateTool
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'DateTool' true )").  As the DateTool
 is quite full-featured and provides many similar functions with varying and
 strongly-typed options, not all functions are demonstrated below.  See the javadoc
 for a full listing of available functions.
@@ -90,9 +90,9 @@
 </table>
 
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
 <form method="post" action="$link.self.anchor('fullDemo')">
-<textarea name="demo" rows="8" cols="65">##
+<textarea name="demo" rows="12" cols="65">##
 #if( $params.demo )##
 $params.demo##
 #else##
@@ -107,14 +107,14 @@
 #end##
 </textarea>
   <br>
-  <input type="submit" value="Try it!">
+  <input type="submit" value="$demo.try">
   #if( $params.layout )
   <input type="hidden" name="layout" value="$params.layout">
   #end
 </form>
 
 #if( $params.demo )
-$demos.mainResultsIntro:
+$demo.mainResultsIntro:
 <pre>
   $render.eval($params.demo)
 </pre>

Modified: velocity/tools/trunk/examples/showcase/esc.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/esc.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/esc.vm (original)
+++ velocity/tools/trunk/examples/showcase/esc.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'EscapeTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'EscapeTool' true )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'EscapeTool' true )").
 </p>
 
 #demoTableStart()
@@ -87,7 +87,7 @@
 #set( $sql = "McHale's Navy" )
 
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
 <form method="post" action="$link.self.anchor('fullDemo')">
 <textarea name="demo" rows="10" cols="65">##
 #if( $params.demo )##
@@ -131,14 +131,14 @@
 #end##
 </textarea>
   <br>
-  <input type="submit" value="Try it!">
+  <input type="submit" value="$demo.try">
   #if( $params.layout )
   <input type="hidden" name="layout" value="$params.layout">
   #end
 </form>
 
 #if( $params.demo )
-$demos.mainResultsIntro:
+$demo.mainResultsIntro:
 <pre>
   $render.eval($params.demo)
 </pre>

Modified: velocity/tools/trunk/examples/showcase/import.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/import.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/import.vm (original)
+++ velocity/tools/trunk/examples/showcase/import.vm Thu Feb 15 12:12:18 2007
@@ -13,14 +13,15 @@
 ## under the License.
 #title( 'ImportTool' )
 <p>
-This page demonstrates the function of the #doclink( 'ImportTool' false ).
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'ImportTool' false )").
 </p>
 
 <table border="1" cellspacing="0" cellpadding="3">
 <tr>
-  <th>Function</th>
-  <th>Demo Result</th>
-  <th>Description</th>
+  <th>$demo.function</th>
+  <th>$demo.result</th>
+  <th>$demo.description</th>
 </tr>
 <tr>
   <form method="post" action="$link">
@@ -31,7 +32,7 @@
     #if( $params.read )
       $esc.html($import.read($params.read))
     #else
-      <input type="submit" value="Try it!">
+      <input type="submit" value="$demo.try">
       <br>
       Please note that the results will be html-escaped by the 
       <a href="$link.relative('esc.vm').params($params.all)">EscapeTool</a> for
the purposes of this demo.

Modified: velocity/tools/trunk/examples/showcase/link.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/link.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/link.vm (original)
+++ velocity/tools/trunk/examples/showcase/link.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'LinkTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'LinkTool' false )"). This tool
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'LinkTool' false )"). This tool
 is somewhat unusual in that every method that takes parameters will return a new
 instance of the tool that is a copy of the one the method was called upon, with
 the additional change specified by the method call.
@@ -94,7 +94,7 @@
 #set( $base = $link.self.anchor('fullDemo') )
 
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
 <form method="post" action="$link.self.anchor('fullDemo')">
 <textarea name="demo" rows="5" cols="65">##
 #if( $params.demo )##
@@ -108,14 +108,14 @@
 #end##
 </textarea>
   <br>
-  <input type="submit" value="Try it!">
+  <input type="submit" value="$demo.try">
   #if( $params.layout )
   <input type="hidden" name="layout" value="$params.layout">
   #end
 </form>
 
 #if( $params.demo )
-$demos.mainResultsIntro:
+$demo.mainResultsIntro:
 <pre>
   $render.eval($params.demo)
 </pre>

Modified: velocity/tools/trunk/examples/showcase/lists.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/lists.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/lists.vm (original)
+++ velocity/tools/trunk/examples/showcase/lists.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'ListTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'ListTool' true )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'ListTool' true )").
 </p>
 
 #demoTableStart()
@@ -51,7 +51,7 @@
 
 #set( $primes = [1, 2, 3, 5, 7, 11] )
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
 <form method="post" action="$link.self.anchor('fullDemo')">
 <textarea name="demo" rows="7" cols="65">##
 #if( $params.demo )##
@@ -67,14 +67,14 @@
 #end##
 </textarea>
   <br>
-  <input type="submit" value="Try it!">
+  <input type="submit" value="$demo.try">
   #if( $params.layout )
   <input type="hidden" name="layout" value="$params.layout">
   #end
 </form>
 
 #if( $params.demo )
-$demos.mainResultsIntro:
+$demo.mainResultsIntro:
 <pre>
   $render.eval($params.demo)
 </pre>

Modified: velocity/tools/trunk/examples/showcase/math.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/math.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/math.vm (original)
+++ velocity/tools/trunk/examples/showcase/math.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'MathTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'MathTool' true )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'MathTool' true )").
 </p>
 
 #demoTableStart()

Modified: velocity/tools/trunk/examples/showcase/mill.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/mill.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/mill.vm (original)
+++ velocity/tools/trunk/examples/showcase/mill.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'IteratorTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'IteratorTool' true )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'IteratorTool' true )").
 This tool is a convenience tool to use with ${esc.h}foreach loops. It wraps a
 list to let the designer specify a condition to terminate the loop,
 and reuse the same list in different loops.
@@ -38,14 +38,14 @@
 ${esc.d}numbers.more()
 #end
   </textarea>
-  <input type="submit" value="Try it!">
+  <input type="submit" value="$demo.try">
   #if( $params.layout )
   <input type="hidden" name="layout" value="$params.layout">
   #end
 </form>
 
 #if( $params.demo )
-$demos.mainResultsIntro:
+$demo.mainResultsIntro:
 <pre>
   $render.eval($params.demo)
 </pre>

Modified: velocity/tools/trunk/examples/showcase/number.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/number.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/number.vm (original)
+++ velocity/tools/trunk/examples/showcase/number.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'NumberTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'NumberTool' true )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'NumberTool' true )").
 </p>
 
 #demoTableStart()

Modified: velocity/tools/trunk/examples/showcase/pager.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/pager.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/pager.vm (original)
+++ velocity/tools/trunk/examples/showcase/pager.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'AbstractPagerTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'AbstractPagerTool' false )").  In this
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'AbstractPagerTool' false )").  In this
 case, we are working with a simple implementation called "MyPagerTool".
 </p>
 
@@ -98,7 +98,7 @@
 </table>
 
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
   #if( $pager.hasItems() )
     <div align="left">
       Showing $!pager.pageDescription<br>

Modified: velocity/tools/trunk/examples/showcase/params.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/params.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/params.vm (original)
+++ velocity/tools/trunk/examples/showcase/params.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'ParameterParser' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'ParameterParser' false )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'ParameterParser' false )").
 </p>
 
 #demoTableStart()

Modified: velocity/tools/trunk/examples/showcase/render.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/render.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/render.vm (original)
+++ velocity/tools/trunk/examples/showcase/render.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'ViewRenderTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'ViewRenderTool' false )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'ViewRenderTool' false )").
 </p>
 
 #demoTableStart()
@@ -33,7 +33,7 @@
 </table>
 
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
 <form method="post" action="$link.self.anchor('fullDemo')">
 <textarea name="demo" rows="7" cols="65">##
 #if( $params.demo )##
@@ -53,14 +53,14 @@
 #end##
 </textarea>
   <br>
-  <input type="submit" value="Try it!">
+  <input type="submit" value="$demo.try">
   #if( $params.layout )
   <input type="hidden" name="layout" value="$params.layout">
   #end
 </form>
 
 #if( $params.demo )
-$demos.mainResultsIntro:
+$demo.mainResultsIntro:
 <pre>
   $render.eval($params.demo)
 </pre>

Modified: velocity/tools/trunk/examples/showcase/search.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/search.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/search.vm (original)
+++ velocity/tools/trunk/examples/showcase/search.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'AbstractSearchTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'AbstractSearchTool' false )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'AbstractSearchTool' false )").
 In this case, we are working with a simplistic, demonstration implementation
 called "MySearchTool".
 </p>
@@ -105,7 +105,7 @@
 </table>
 
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
    <form name="search" method="get" action="$link.self.anchor('fullDemo')">
      <input type="text"name="find" value="$!search.criteria">
      <input type="submit" value="Find">

Modified: velocity/tools/trunk/examples/showcase/sorter.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/sorter.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/sorter.vm (original)
+++ velocity/tools/trunk/examples/showcase/sorter.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'SortTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'SortTool' true )").
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'SortTool' true )").
 </p>
 
 #demoTableStart()

Modified: velocity/tools/trunk/examples/showcase/text.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/text.vm?view=diff&rev=508119&r1=508118&r2=508119
==============================================================================
--- velocity/tools/trunk/examples/showcase/text.vm (original)
+++ velocity/tools/trunk/examples/showcase/text.vm Thu Feb 15 12:12:18 2007
@@ -16,8 +16,8 @@
 ## under the License.
 #title( 'ResourceTool' )
 <p>
-#set( $demos = $text.demos )
-$demos.thisPage.insert("#doclink( 'ViewResourceTool' false )").  This tool
+#set( $demo = $text.demo )
+$demo.thisPage.insert("#doclink( 'ViewResourceTool' false )").  This tool
 is similar to the <a href="$link.relative('link.vm')">LinkTool</a> in that most
methods
 return a new object that has mostly the same methods as the original, allowing you
 to build up parameters elegantly and simply, rather than try to remember how to use
@@ -57,7 +57,7 @@
 </table>
 
 <div align="center">
-  <a name="fullDemo"><h3>$demos.mainExampleHeader</h3></a>
+  <a name="fullDemo"><h3>$demo.mainExampleHeader</h3></a>
 <form method="post" action="$link.self.anchor('fullDemo')">
 <textarea name="demo" rows="6" cols="65">##
 #if( $params.demo )##
@@ -70,14 +70,14 @@
 #end##
 </textarea>
   <br>
-  <input type="submit" value="Try it!">
+  <input type="submit" value="$demo.try">
   #if( $params.layout )
   <input type="hidden" name="layout" value="$params.layout">
   #end
 </form>
 
 #if( $params.demo )
-$demos.mainResultsIntro:
+$demo.mainResultsIntro:
 <pre>
   $render.eval($params.demo)
 </pre>



Mime
View raw message