You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/05/09 13:07:02 UTC

cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/util/template HtmlPageAttributes.java

henning     2003/05/09 04:07:02

  Modified:    src/java/org/apache/turbine/util/template
                        HtmlPageAttributes.java
  Log:
  Search and replace is cool. Using the _right_ value for < and > is even
  cooler. ;-)
  
  Revision  Changes    Path
  1.8       +12 -12    jakarta-turbine-2/src/java/org/apache/turbine/util/template/HtmlPageAttributes.java
  
  Index: HtmlPageAttributes.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/template/HtmlPageAttributes.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- HtmlPageAttributes.java	14 Mar 2003 18:35:32 -0000	1.7
  +++ HtmlPageAttributes.java	9 May 2003 11:07:02 -0000	1.8
  @@ -87,35 +87,35 @@
    *  $page.addScript($content.getURI("globalJavascriptCode.js"))<br>
    *  <br>
    *  ## build the HTML, HEAD, and BODY tags dynamically<br>
  - *  &lthtml&gt<br>
  - *    &lthead&gt<br>
  + *  &lt;html&gt;<br>
  + *    &lt;head&gt;<br>
    *      #if( $page.Title != "" )<br>
  - *      &lttitle&gt$page.Title&lt/title&gt<br>
  + *      &lt;title&gt;$page.Title&lt;/title&gt;<br>
    *      #end<br>
    *      #foreach($metaTag in $page.MetaTags.keySet())<br>
  - *      &ltmeta name="$metaTag" content="$page.MetaTags.get($metaTag)"&gt<br>
  + *      &lt;meta name="$metaTag" content="$page.MetaTags.get($metaTag)"&gt;<br>
    *      #end<br>
    *      #foreach($httpEquiv in $page.HttpEquivs.keySet())<br>
  - *      &ltmeta http-equiv="$httpEquiv" content="$page.HttpEquivs.get($httpEquiv)"&gt<br>
  + *      &lt;meta http-equiv="$httpEquiv" content="$page.HttpEquivs.get($httpEquiv)"&gt;<br>
    *      #end<br>
    *      #foreach( $styleSheet in $page.StyleSheets )<br>
  - *        &ltlink rel="stylesheet" href="$styleSheet.Url"<br>
  + *        &lt;link rel="stylesheet" href="$styleSheet.Url"<br>
    *          #if($styleSheet.Type != "" ) type="$styleSheet.Type" #end<br>
    *          #if($styleSheet.Media != "") media="$styleSheet.Media" #end<br>
    *          #if($styleSheet.Title != "") title="$styleSheet.Title" #end<br>
  - *        &gt<br>
  + *        &gt;<br>
    *      #end<br>
    *      #foreach( $script in $page.Scripts )<br>
  - *        &ltscript type="text/javascript" src="$script" language="JavaScript"&gt&lt/script&gt<br>
  + *        &lt;script type="text/javascript" src="$script" language="JavaScript"&gt;&lt;/script&gt;<br>
    *      #end<br>
  - *    &lt/head&gt<br>
  + *    &lt;/head&gt;<br>
    *<br>
    *    ## Construct the body tag.  Iterate through the body attributes to build the opening tag<br>
  - *    &ltbody<br>
  + *    &lt;body<br>
    *      #foreach( $attributeName in $page.BodyAttributes.keySet() )<br>
    *        $attributeName = "$page.BodyAttributes.get($attributeName)"<br>
    *      #end<br>
  - *     &gt
  + *     &gt;
    * </code>
    * <p>
    * Example usages of this tool in your screen templates:<br>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org