title: Grails rendering plugin css issue
body: <p>I've just installed grails rendering plugin and would like to use it for generating PDF files. I've created simple template, but it is exported without any css styles. If I simply render template from grails, then page appears with all styles in my web browser. </p>
  
  <p>So, my question is - how to correctly include CSS file during PDF generation process?</p>
  
  <p>My template:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" /&gt;
      &lt;link rel="stylesheet" href="${resource(dir:'css',file:'webui.css')}" /&gt;
      &lt;r:layoutResources/&gt;
      &lt;title&gt;Report&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="content"&gt;
          &lt;div id="center-container"&gt;
          &lt;h1&gt;&lt;g:message code="default.list.label" args="[entityName]" /&gt;&lt;/h1&gt;
          &lt;table&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th class="trip"&gt;trip&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
                  &lt;tr class="odd"&gt;
                      &lt;td&gt;
                          ${tip}
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
  &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And I have style .odd in my webui.css, but it is not applied on the row.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Edit1: I found out that styles are fetched, if I do it in the following way:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="my_appname${resource(dir:'css',file:'main.css')}" /&gt;
  </code></pre>
  
  <p>But I don't want to hardcode application name (this is also a base context path). Is there a better way to generate proper link to a css file?</p>