title: Using grailsApplication object in Scaffolding templates
body: <p>Is it possible to access the application's configurations using the grailsApplication object in scaffolding templates?</p>
  
  <p>For example:</p>
  
  <p>If I have this in my application.yml file</p>
  
  <pre><code>customconfig:
      layout: foo
  </code></pre>
  
  <p>Is there a way for me to get this value in my file \src\main\templates\scaffolding\index.gsp by doing something like:</p>
  
  <pre><code>&lt;meta name="layout" content="${grailsApplication.config.customconfig.layout}" /&gt;
  </code></pre>
  
  <p>I would like the code in my generated view to be:</p>
  
  <pre><code>&lt;meta name="layout" content="foo" /&gt;
  </code></pre>
  
  <p>Everything I've tried so far give me an error when trying to generate my view:</p>
  
  <pre><code>Error occurred running Grails CLI: No such property: grails for class: groovy.lang.Binding
  </code></pre>
  
  <p>I am using Grails 3.0.11</p>
  
  <p>I appreciate any help! Thanks.</p>