Skip to content

Instantly share code, notes, and snippets.

@billyyarosh
Created January 7, 2013 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billyyarosh/4477107 to your computer and use it in GitHub Desktop.
Save billyyarosh/4477107 to your computer and use it in GitHub Desktop.
A better example of how to add resources in Grails 2.x
modules = {
application {
resource url:'js/application.js'
}
bootstrap {
resource url:'less/custom-bootstrap.less',attrs:[rel: "stylesheet/less", type:'css']
dependsOn 'jquery'
dependsOn 'bootstrapJs'
}
bootstrapJs {
resource url:'js/bootstrap/bootstrap-affix.js'
resource url:'js/bootstrap/bootstrap-alert.js'
resource url:'js/bootstrap/bootstrap-button.js'
resource url:'js/bootstrap/bootstrap-carousel.js'
resource url:'js/bootstrap/bootstrap-collapse.js'
resource url:'js/bootstrap/bootstrap-dropdown.js'
resource url:'js/bootstrap/bootstrap-modal.js'
resource url:'js/bootstrap/bootstrap-popover.js'
resource url:'js/bootstrap/bootstrap-scrollspy.js'
resource url:'js/bootstrap/bootstrap-tab.js'
resource url:'js/bootstrap/bootstrap-tooltip.js'
resource url:'js/bootstrap/bootstrap-transition.js'
resource url:'js/bootstrap/bootstrap-typeahead.js'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment