title: How to best implement something like shortcodes in Grails
body: <p>How can I best implement something like shortcodes (thats what it's called in Wordpress) in Grails.</p>
  
  <p>I have a Grails application where the user can input text. This text is saved in the Database. The Text should contain something like "shortcodes":</p>
  
  <pre><code>class Page(){
  
  String text = "please display [form A] above here."
  
  }
  </code></pre>
  
  <p>In my view I display the value text from my domain Object.</p>
  
  <pre><code>${domainObject.text}
  </code></pre>
  
  <p>eg: "[form A]" should display a referenced Form A in the position where it was put in the text. </p>
  
  <p>What's the best way I can do this in Grails.</p>