1

What is the right way to add a Google web font css dependency to a grails app using the resources plugin?

For some reason, the grails resources plugin seems to want to remove the query string.

modules = {
    mainLayout {
        dependsOn 'bootstrap-css,bootstrap-responsive-css,bootstrap-dropdown'
        resource url: 'css/main.css'
        resource url: 'http://fonts.googleapis.com/css?family=Snowburst One', attrs: [type: "css"]
    }
}

The HTML has this:

Tyler Rafferty
  • 3,391
  • 4
  • 28
  • 37
Christian
  • 1,241
  • 2
  • 8
  • 11
  • 1
    http://stackoverflow.com/questions/9815349/how-do-i-append-custom-query-strings-to-grails-resources-using-a-mapper –  Mar 01 '13 at 14:42

1 Answers1

0

Include the link to the web font a pi in your main layout file:

<link href='http://fonts.googleapis.com/css?family=.../>
Michael
  • 32,527
  • 49
  • 210
  • 370