joergrech / KickstartWithBootstrap

Kickstart is an extension for Grails in order to start your project with a good looking frontend. It is intended to be used in rapid application scenarios such as a Startup Weekend or a prototyping session with a customer. This plugin provides adapted scaffolding templates for standard CRUD pages using Twitter's CSS Framework Bootstrap and offers some basic pages for a web site.
65 stars 52 forks source link

Make resources overridable #71

Open sergiomichels opened 10 years ago

sergiomichels commented 10 years ago

A good option is to set an id to the resources of this plugin, like JQuery UI does, so the developer can override them. This is really useful for CSS changes, for example.

modules = {

        /* Bootstrap definitions without less (if resource processing is switched off) */
        'bootstrap' {
                resource id: 'bootstrap-jquery', url: [dir: 'bootstrap/js/tests/vendor',file: 'jquery.js']
                resource id: 'bootstrap-js',url: [dir: 'bootstrap/dist/js',                file: 'bootstrap.js']
                resource id: 'bootstrap-css',url: [dir: 'bootstrap/dist/css',                file: 'bootstrap.css']
        }
//application modules
modules = {
  overrides {
    'bootstrap' {
      resource id: 'bootstrap-css', url: [dir: 'css', file: 'my-custom-awesome-bootstrap.css']
    }
  }
}