velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r498709 - /velocity/tools/trunk/xdocs/site.dvsl
Date Mon, 22 Jan 2007 17:15:13 GMT
Author: nbubna
Date: Mon Jan 22 09:15:12 2007
New Revision: 498709

URL: http://svn.apache.org/viewvc?view=rev&rev=498709
Log:
don't require author email addresses

Modified:
    velocity/tools/trunk/xdocs/site.dvsl

Modified: velocity/tools/trunk/xdocs/site.dvsl
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/xdocs/site.dvsl?view=diff&rev=498709&r1=498708&r2=498709
==============================================================================
--- velocity/tools/trunk/xdocs/site.dvsl (original)
+++ velocity/tools/trunk/xdocs/site.dvsl Mon Jan 22 09:15:12 2007
@@ -80,7 +80,9 @@
 
        #foreach( $n in $node.properties.selectNodes("author") )
         <meta name="author" value="$n"/>
-        <meta name="email" value="$n.attribute("email")" />
+        #if( $n.attribute('email') )
+            <meta name="email" value="$n.attribute('email')" />
+        #end
        #end
         
     
@@ -377,7 +379,10 @@
   <tr><td>&nbsp;</td><td><pre>$node.copy($node.config-example.children())</pre></td></tr>
 
   <tr><td colspan="2"><strong>Author(s)</strong></td></tr>
-  <tr><td>&nbsp;</td><td>#foreach($n in $node.selectNodes("author"))<a
href="mailto:$n.attribute("email")">$n</a><br>#end</td></tr>
+  <tr>
+    <td>&nbsp;</td>
+    <td>#foreach($n in $node.selectNodes("author"))#if( $n.attribute('email') )<a
href="mailto:$n.attribute('email')">$n</a>#else$n#end<br>#end</td>
+  </tr>
 </table>
 #end
 



Mime
View raw message