title: grails access controller from taglib
body: <p>Is it possible to access the current controller instance from within a TagLib? For example:</p>
  
  <pre><code>class FooTagLib {
      static namespace = 'foo'
  
      def msg = { attrs, body -&gt;          
        // Can I get a reference to the current controller here?
      }
  }
  </code></pre>
  
  <p>I want to do this because I store some data in a property of the controller and want to access it within the TagLib. I realise this may sound strange, but just humour me....</p>