metaskills/less-rails-bootstrap — pull request #51 by coreyti (2012-05-05 00:07:00+00:00)
Title: Enable two step imports

this change allows twitter bootstrap to be imported in two steps:

// get reset, variables & mixins:
@import "twitter/bootstrap/init"

// perform variable overrides here

// get the rest of bootstrap
@import "twitter/bootstrap/rules"

...which makes for an easy way to override variables in the middle of the bootstrap import so that, for example, the rest of bootstrap will use the customizations. all without having to import each specific less file individually, which would likely cause issues down the line as the application import calls fall out of sync with the bootstrap definitions.

the default behavior is maintained. that is, both of the following still work as always:

//= require 'twitter/bootstrap'

@import "twitter/bootstrap"