跳转到主要内容

fanstatic twitter bootstrap.

项目描述

js.bootstrap

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

简介

此库打包了 twitter bootstrap 用于 fanstatic。它支持不同的模式(正常、压缩)。

这需要在您的Web框架和 fanstatic 之间进行集成,并确保将原始资源(在 js.bootstrap 中的 resources 目录中提供)发布到某些URL。

联系方式

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

如何使用?

应在渲染页面之前进行设置。有关更多信息,请参阅fanstatic

>>> from fanstatic import init_needed
>>> needed = init_needed(base_url='https://')

您可以从js.bootstrap导入bootstrap,并在您希望这些资源在页面上包含的位置使用.need

>>> from js.bootstrap import bootstrap
>>> bootstrap.need()

如果您想在按钮、菜单和面板上使用渐变和阴影,可以包含bootstrap_theme css

>>> from js.bootstrap import bootstrap_theme
>>> bootstrap_theme.need()

渲染包含

>>> print needed.render()
<link rel="stylesheet" type="text/css" href="https:///fanstatic/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="https:///fanstatic/bootstrap/css/bootstrap-theme.css" />
<script type="text/javascript" src="https:///fanstatic/jquery/jquery.js"></script>
<script type="text/javascript" src="https:///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]

  • 添加地图文件 [neglectedvalue]

3.1.1 (2014-04-23)

  • 升级到Bootstrap 3.1.1 [davidjb]

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)

  • 包含缺失的主题.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)

  • 锁定到bootstrap版本2.0.1 [amleczko]

2.1 (2012-02-01)

  • 还包含bootstrap图像 [amleczko]

2.0 (2012-02-01)

  • 更新到twitter bootstrap 2.0 [amleczko]

1.4 (09-11-2011)

  • 更新到twitter bootstrap 1.4 [amleczko]

1.3.2 (30-09-2011)

  • 更新bootstrap.css到正确的1.3.0版本 [amleczko]

1.3.1 (29-09-2011)

  • 修复javascript依赖问题 [amleczko]

1.3.0 (28-09-2011)

  • 初始发布 - 使用bootstrap 1.3.0 [amleczko]

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面