title: Grails custom tag out<<
body: <p>I'm testing creating tags in grails.</p>
  
  <pre><code>class HiWorldtagLib{
  
     def sayhi={attrs,body-&gt;
          def msg="&lt;h1&gt;Hello"+attrs.name+"&lt;/h1&gt;";
          out&lt;&lt;msg;
     }
  
  }
  
   &lt;HiWorld:sayhi name="world"/&gt;
  </code></pre>
  
  <p>It runs through my tag code but only spits out the HTML with comment <code>&lt;!--</code> wrapped around it. And also the tag itself in lower case.</p>
  
  <p>Rendered html...</p>
  
  <pre><code>&lt;body&gt;
      &lt;!--&lt;h1&gt;Hello world&lt;/h1&gt;--&gt;
      &lt;hiworld:sayhi name="world"/&gt;
  &lt;/body&gt;
  </code></pre>