Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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