You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jv...@locus.apache.org on 2000/10/24 04:02:42 UTC

cvs commit: jakarta-velocity/test/templates/compare arithmetic.cmp array.cmp block.cmp comment.cmp directive.cmp equality.cmp escape.cmp foreach-array.cmp foreach-method.cmp foreach-variable.cmp formal.cmp if.cmp logical.cmp loop.cmp method.cmp quotes.cmp sample.cmp shorthand.cmp test.cmp

jvanzyl     00/10/23 19:02:42

  Added:       test/templates/compare arithmetic.cmp array.cmp block.cmp
                        comment.cmp directive.cmp equality.cmp escape.cmp
                        foreach-array.cmp foreach-method.cmp
                        foreach-variable.cmp formal.cmp if.cmp logical.cmp
                        loop.cmp method.cmp quotes.cmp sample.cmp
                        shorthand.cmp test.cmp
  Log:
  - updating comparisons.
  
  Revision  Changes    Path
  1.1                  jakarta-velocity/test/templates/compare/arithmetic.cmp
  
  Index: arithmetic.cmp
  ===================================================================
  
  
  
  6
  
  
  5
  
  
  10
  
  
  5
  
  
  1.1                  jakarta-velocity/test/templates/compare/array.cmp
  
  Index: array.cmp
  ===================================================================
  
  
  
  
  this is some text.
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/block.cmp
  
  Index: block.cmp
  ===================================================================
  
  
  
  
  
      this
      
  
  
  
      this is the if statement.
  
      
      
          this is great
  
              
  
      
  
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/comment.cmp
  
  Index: comment.cmp
  ===================================================================
  
  
  
  
  
  
  
  this is some text.
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/directive.cmp
  
  Index: directive.cmp
  ===================================================================
  
  
  this is a dynamic directive!
  
  
  
  
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/equality.cmp
  
  Index: equality.cmp
  ===================================================================
  
  
  
  
  
  
      the user jason is logged in!
  
  
  
  
      the count is 5!
      
  
  
      the user isn't logged in.
      
  
  
      $count is not equal to 3
      
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/escape.cmp
  
  Index: escape.cmp
  ===================================================================
  
  
  A
  
  #set $foo = "bar"
  
  
  $foo => bar
  
  
  1.1                  jakarta-velocity/test/templates/compare/foreach-array.cmp
  
  Index: foreach-array.cmp
  ===================================================================
  
  
  Foreach with an array.
  
  
  $stringarray
  
  <table>
  
  </table>
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/foreach-method.cmp
  
  Index: foreach-method.cmp
  ===================================================================
  
  
  Foreach with a method.
  
  
      This is ArrayList element 1.
      This is ArrayList element 2.
      This is ArrayList element 3.
      This is ArrayList element 4.
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/foreach-variable.cmp
  
  Index: foreach-variable.cmp
  ===================================================================
  
  
  Foreach with a variable.
  
  
      This is ArrayList element 1.
      $velocityCount
      This is ArrayList element 2.
      $velocityCount
      This is ArrayList element 3.
      $velocityCount
      This is ArrayList element 4.
      $velocityCount
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/formal.cmp
  
  Index: formal.cmp
  ===================================================================
  
  
  1. lunatic
  
  2. lunatic
  
  3. lunatic
  
  4. lunatic
  
  lunaticlunatic
  
  lunaticMapBuilder
  
  lunatic.map.lunaticMapBuilder
  
  
  
  
  thisthat
  
  lunatic}
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/if.cmp
  
  Index: if.cmp
  ===================================================================
  
  
  
      this is true
  
  
      
  
      
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/logical.cmp
  
  Index: logical.cmp
  ===================================================================
  
  
  
  
  
      $foo is greater then 1
      
  
  
      $foo is less than 10
  
  
  
      $foo is great than or equal to 5
  
  
  
      $foo is less than or equal to 5
      
  
  
  
  
      foo is false
      
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/loop.cmp
  
  Index: loop.cmp
  ===================================================================
  
  
  
      
      hello< ArrayList element 1 > 
  
      
      hello< ArrayList element 2 > 
  
      
      hello< ArrayList element 3 > 
  
      
      hello< ArrayList element 4 > 
      
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/method.cmp
  
  Index: method.cmp
  ===================================================================
  
  
  I am a running man  
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/quotes.cmp
  
  Index: quotes.cmp
  ===================================================================
  
  
  
  
  
      "what is that"
      
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/sample.cmp
  
  Index: sample.cmp
  ===================================================================
  
  
  <html>
  <head><title>Sample velocity page</title></head>
  <body bgcolor="ffffff">
  <center>
  
  <h2>Hello from velocity!</h2>
  <i>Here's the list of people</i>
  <table cellspacing="0" cellpadding="5" widht="100%">
      <tr>
          <td bgcolor="eeeeee" align="center">
              Names
          </td>
      </tr>
      
      <tr>
          <td bgcolor="eeeeee">ArrayList element 1</td>
      </tr>
      
      <tr>
          <td bgcolor="eeeeee">ArrayList element 2</td>
      </tr>
      
      <tr>
          <td bgcolor="eeeeee">ArrayList element 3</td>
      </tr>
      
      <tr>
          <td bgcolor="eeeeee">ArrayList element 4</td>
      </tr>
      
  </table>
  </center>
  </html>
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/shorthand.cmp
  
  Index: shorthand.cmp
  ===================================================================
  <input type="text" name="email" value="">
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/test.cmp
  
  Index: test.cmp
  ===================================================================
  
  
  <html>
  <body>
  
  jason
  
      
  
  
  
  
  
  
  this is testing for wild loose commas , ,
  
  $100
  
  
  
  
  This is the bar way.
  
  
      This is $bar.
  
  
      This is the if.
  
  
  
  #set $foo = "bar"
  
  $foo   => bar
  $foo;  => bar;
  $foo.  => bar.
  $foo.. => bar..
  $foo/  => bar/
  $foo"  => bar"
  $foo  => bar\
  $foo<  => bar<
  $foo-  => $foo-
  $fooo+ => $fooo+
  $foo-x => $foo-x
  $foo$  => bar$
  
  
  
  
  jon
   nothing here
  
  function preload(imgObj,imgSrc)
  {
      if (document.images) 
      {
          eval(imgObj+' = new Image()')
          eval(imgObj+'.src = "'+imgSrc+'"')
      }
  }
  
  function changeImage(layer,imgName,imgObj)
  {
      if (document.images)
      {
          if (document.layers && layer!=null) eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
          else document.images[imgName].src = eval(imgObj+".src")
      }
  }
  
  
  
  <!-- This is an HTML comment -->
  
  
  $provider2.Title
  
  
  x
  
  
  
  x
  
  <input type="text" name="email" value="">
  
  
  
  
  lunatic
  
  
  
  lunatic
  
  
  
  
  
  
  crocodile hunter!
  
  
  
  <!-- look here -->
  
  
  
  lunatic
  
  
  
  
  
  jason
  
  
  
  jason
  
  
  
  
  
  
  
  
  
  
  
  
  
  
      This is a property that returns a boolean
      value of true.
  
  
  
      This expression is always (true).
  
  
  
  Foreach with a variable.
  
  
      This is ArrayList element 1.
      This is ArrayList element 2.
      This is ArrayList element 3.
      This is ArrayList element 4.
  
  Foreach with an array.
  
  <table>
  
      <tr>
          <td>This is first element</td>
      </tr>        
  
      <tr>
          <td>This is second element</td>
      </tr>        
  
  </table>
  
  
  
      This is the vector element 1.
      This is the vector element 2.
  
  
  Foreach with a method.
  
  
      This is ArrayList element 1.
      This is ArrayList element 2.
      This is ArrayList element 3.
      This is ArrayList element 4.
  
  $10.00
  
  "this is great"
  
  (this is also great)
  
  This is the #stuff and this
  is the way #to #go.
  
  this = that
  
  I am a jason.
  
  
      Yes the APL rules!
  
  
  </body>
  </html>
  
  
  

Re: cvs commit: jakarta-velocity/test/templates/compare arithmetic.cmp array.cmp block.cmp comment.cmp directive.cmp equality.cmp escape.cmp foreach-array.cmp foreach-method.cmp foreach-variable.cmp formal.cmp if.cmp logical.cmp loop.cmp method.cmp quotes.cmp sample.cmp shorthand.cmp test.cmp

Posted by Daniel Rall <dl...@collab.net>.
jvanzyl@locus.apache.org wrote:
> 
>   1.1                  jakarta-velocity/test/templates/compare/test.cmp
> 
>   Index: test.cmp
>   ===================================================================
> 
> 
>   <html>
>   <body>
> 
>   jason
> 
> 
> 
> 
> 
> 
> 
> 
>   this is testing for wild loose commas , ,
> 
>   $100
> 
> 
> 
> 
>   This is the bar way.
> 
> 
>       This is $bar.
> 
> 
>       This is the if.
> 
> 
> 
>   #set $foo = "bar"
> 
>   $foo   => bar
>   $foo;  => bar;
>   $foo.  => bar.
>   $foo.. => bar..
>   $foo/  => bar/
>   $foo"  => bar"
>   $foo  => bar\        <----  IS THIS OKAY?
>   $foo<  => bar<
>   $foo-  => $foo-
>   $fooo+ => $fooo+
>   $foo-x => $foo-x
>   $foo$  => bar$

In the template, I believe it is "$foo\", but is not showing up that
way.