Fanstatic Twitter引导程序。
js.bootstrap的Python项目详细描述
js.bootstrap
简介
这个库为fanstatic打包twitter bootstrap。它知道不同的模式(正常,缩小)。
这需要web框架与fanstatic之间的集成, 并确保原始资源(在^{tt2}中$ js.bootstrap中的目录被发布到某个url。
接触
- andrew mleczko<;andrew.mleczko at redturtle.net>;redturtle技术,http://www.redturtle.net/
如何使用?
这应该在呈现页面之前设置。有关详细信息,请参见fanstatic 信息:
>>> from fanstatic import init_needed >>> needed = init_needed(base_url='http://localhost')
您可以从js.bootstrap和.need导入引导 您希望这些资源包含在页面中的位置:
>>> from js.bootstrap import bootstrap >>> bootstrap.need()
如果你想在按钮、菜单和面板上添加渐变和阴影, 您可以包含引导主题css:
>>> from js.bootstrap import bootstrap_theme >>> bootstrap_theme.need()
呈现包含:
>>> print needed.render() <link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/bootstrap/css/bootstrap.css" /> <link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/bootstrap/css/bootstrap-theme.css" /> <script type="text/javascript" src="http://localhost/fanstatic/jquery/jquery.js"></script> <script type="text/javascript" src="http://localhost/fanstatic/bootstrap/js/bootstrap.js"></script>
更改
3.3.4(2015-04-21)
- 更新至bootstrap 3.3.4[amleczko]
3.3.2(2015-04-17)
- 更新至bootstrap 3.3.2[teixas]
3.3.1(2015-01-13)
- 更新至bootstrap 3.3.1[pabo3000]
- 更新bootstrap.py[pabo3000]
3.2(2014-09-03)
- 更新至bootstrap 3.2[amleczko]
- 添加地图文件[忽略的值]
3.1.1(2014-04-23)
- 更新至bootstrap 3.1.1。 [大卫杰布]
3.0.2(2013-12-14)
- 更新至Bootstrap 3.0.2
3.0.0.2(2013-12-14)
- 在清单[dnozay]中包括丢失的字体
3.0.0.1(2013-10-01)
- 包括缺少的theme.css[dairiki]
3.0(2013-09-30)
- 更新至Bootstrap 3.0[Christian Klinger]
2.3.2(2013-08-02)
- 更新至Bootstrap 2.3.2[tmassman]
2.3.1(2013-03-08)
- 升级至bootstrap 2.3.1[disko]
2.3.0(2013-02-26)
- 升级到Bootstrap 2.3.0[amleczko]
2.2.2(2012-12-11)
- 升级至bootstrap 2.2.2[disko]
2.1.6(2012-10-25)
- 升级至bootstrap 2.1.1[disko]
2.1.5(2012-08-22)
- 插销到Boostrap 2.1[AMLECZKO]
2.1.3.1(2012-05-23)
- 修复readme.rst和manifest.ini[amleczko]的问题
2.1.3(2012-05-19)
- 更新至bootstrap 2.0.3[amleczko]
2.1.1(2012-03-01)
- pin到引导版本2.0.1[amleczko]
2.1(2012-02-01)
- 还添加引导映像[amleczko]
2.0(2012-02-01)
- 更新至Twitter Bootstrap 2.0[amleczko]
1.4(2011年11月9日)
- 更新至twitter bootstrap 1.4[amleczko]
1.3.2(2011年9月30日)
- 将bootstrap.css更新到正确的1.3.0版本[amleczko]
1.3.1(2011年9月29日)
- 修复javascript依赖性问题[amleczko]
1.3.0(2011年9月28日)
- 初始版本-使用bootstrap 1.3.0[amleczko]