TwitterBootstrapBundle
TwitterBootstrapBundle copied to clipboard
Make bootstrap variables changeable simply
It would be great ! :)
http://twitter.github.com/bootstrap/less.html#variables
I will add this when i will have some time ;-)
@ruian , any ideas how to implement it, or where to make 'modifications'? (config.yml, or as an argument to a console?)
maybe it would be better just implement --append-less switch to :compile?
I don't know if it's a good idea to put less variables into config.yml.
I think it's better to a variables.less reference into the user bundle.
And use it instead of default twitter\bootstrap\v2\less\variables.less
Forcing users to copy whole variables.less is a pain.
what about twitter:bootstrap:compile v2 --apend-less MyCoolBundle:lessvars.less (which just adds src\MyCoolBundle\Resources\less\lessvars.less to variables before compilation?)
Yes it could be a solution
Yes and you could mix the two solution, if there is no --apend-less you could just check in the configurations.
And that would make the Bundle and cool less compiler :p
edit : It would be great too to be able to set se default boostrap version in the configuration file too
like:
ruian_bootstrap:
lessvars: |
@boo: 123
@foo: 456
?
Something more like :
ruian_bootstrap:
twitter_bootstrap_version: V2
lessfile: ../src/Acme/Bundle/Resource/Public/less/file.less
#or
lessdir: ../src/Acme/Bundle/Resource/Public/less/my_awesome_stylesheet/
Not sure if lessing a whole directory is possible though ?
With your way using shortcuts will be easier
AcmeBundle:file.less
instead of ../src/Acme/Bundle/Resource/Public/less/file.less
But important i think this addon is just for manipulating bootstrap's variables. not to includes yours into bootstrap.
Indeed. Manipulating whole boostrap would add more problems like 'append or prepend user files?' 'where to append user files, in bootsrap.less or variables.less'?
Yes I think you're right, it would be difficult to know what to do with everything. And in fact I was more thinking about adding completely different less projects to be compiled in a different css file
ruian_bootstrap:
...
less_projetcs:
my_acme_project:
dir: AcmeBundle:dir.less
params: ~
...
But may be that's not the same project and certainly not the right issue
Well, then you should need lesscompiler bundle instead of bootstrap bundle )
Yep @andrewtch i agree
It seems this Issue was resolved (in terms of this 'bundle should not do this')
#closerequest