lx / bootstrap-bundle
此软件包提供Twitter的"Bootstrap"框架,该框架使用SCSS编写(https://github.com/jlong/sass-twitter-bootstrap)和JavaScript,用于Symfony2框架。
This package is not auto-updated.
Last update: 2022-02-01 12:22:13 UTC
README
此软件包的支持已停止。了解原因:[http://matznermatzner.de/en/bernd/2013/11/dont-use-my-symfony2-bundles/](http://matznermatzner.de/en/bernd/2013/11/dont-use-my-symfony2-bundles/)
BootstrapBundle
此软件包提供使用SCSS(https://github.com/jlong/sass-twitter-bootstrap)编写的"Twitter Bootstrap"框架和JavaScript,用于Symfony2框架。
## 安装 将软件包添加到您的AppKernel::registerBundles()方法中,并运行assets:install。
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new lx\BoostrapBundle\lxBoostrapBundle, ); } }
然后转到您的config.yml,并将%assetic.sass.sources.bootstrap%添加到您的compass加载路径中。
请注意:由于syfmony/AsseticBundle不提供在配置中添加加载路径的可能性,您必须将compass用作过滤器。
assetic: filters: sass: #this wont work load_paths: - %assetic.sass.sources.boostrap% compass: #this works fine load_paths: - %assetic.sass.sources.boostrap%
## 使用 仅导入带有twitter前缀的文件。
@import "twitter/boostrap"; @import "twitter/responsive";
BootstrapBundle/
js/
scss/
Resources/
public
images/
有关进一步说明,请参阅:[https://symfony.ac.cn/doc/2.0/cookbook/assetic/asset_management.html](https://symfony.ac.cn/doc/2.0/cookbook/assetic/asset_management.html)
请注意:这只是为了简化在Symfony2框架中使用https://github.com/jlong/sass-twitter-bootstrap和https://github.com/twitter/bootstrap。