Fanstatic Twitter引导程序。

js.bootstrap的Python项目详细描述


js.bootstrap

https://travis-ci.org/RedTurtle/js.bootstrap.png?branch=master

简介

这个库为fanstatic打包twitter bootstrap。它知道不同的模式(正常,缩小)。

这需要web框架与fanstatic之间的集成, 并确保原始资源(在^{tt2}中$ js.bootstrap中的目录被发布到某个url。

接触

http://www.redturtle.it/redturtle_banner.png

如何使用?

这应该在呈现页面之前设置。有关详细信息,请参见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]

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
用于批量操作的java RESTful API分块响应   java读取在线存储的文本文件   在Java ME中将双精度舍入到小数点后5位   java查找一个数字的最接近因子   java更改JMenuBar的字体   java Kmeans聚类算法运行时间和复杂性   java是否可以阻止try catch返回null   java内容解析器指向具有正确URI的错误表   java Android Kotlin插装测试未被识别为插装测试   java TestNG@Dataprovider   在forloop和print语句中声明变量时发生java错误   java在Android Studio 3中设置JNI