Fanstatic Twitter引导程序。
js.bootstrap4的Python项目详细描述
js.bootstrap4
简介
这个库为fanstatic打包Bootstrap 4。它知道不同的模式(正常,缩小)。
这需要web框架与fanstatic之间的集成, 并确保原始资源(在^{tt2}中$ js.bootstrap4中的目录被发布到某个url。
接触
gocept开发人员<;mail at gocept.com>;
如何使用?
这应该在呈现页面之前设置。有关详细信息,请参见fanstatic 信息:
>>> from fanstatic import init_needed >>> needed = init_needed(base_url='http://localhost')
您可以从js.bootstrap4和.need导入引导 您希望这些资源包含在页面中的位置:
>>> from js.bootstrap4 import bootstrap, library >>> bootstrap.need()
呈现包含:
>>> from fanstatic import Inclusion >>> i = Inclusion(needed) >>> print(i.render()) <link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/bootstrap/css/bootstrap.css" /> <script type="text/javascript" src="http://localhost/fanstatic/jquery/jquery...js"></script> <script type="text/javascript" src="http://localhost/fanstatic/bootstrap/js/bootstrap.bundle.js"></script>
bootstrap的css网格和reset css(称为reboot)可能是必需的 也可以单独打,但打电话时已经包括了 bootstrap.need():
>>> import js.bootstrap4 >>> js.bootstrap4.bootstrap_grid_css.need() >>> js.bootstrap4.bootstrap_reboot_css.need()
更改
4.0.0(2018-03-15)
- 从https://github.com/RedTurtle/js.bootstrap 分叉
- 更新至bootstrap 4.0.0[icemac]
- 更新至fanstatic>;=1.0a3。[ICEMAC]
- 添加对python 3.4到3.7的支持[icemac]
- 放弃对Python2.6[ICemac]的支持
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]