跳转到主要内容

fanstatic twitter bootstrap.

项目描述

js.bootstrap4

https://travis-ci.org/gocept/js.bootstrap4.svg?branch=master

简介

此库打包了Bootstrap 4用于fanstatic。它知道不同的模式(普通、压缩)。

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

联系方式

gocept 开发者 <mail at gocept.com>

如何使用?

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

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

您可以从js.bootstrap4导入bootstrap并在需要包括这些资源的地方使用.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网格和重置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)

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)

  • 锁定到 bootstrap 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]

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分发

js.bootstrap4-4.0.0.tar.gz (595.4 kB 查看散列)

上传时间

构建分发

js.bootstrap4-4.0.0-py2.py3-none-any.whl (606.1 kB 查看散列)

上传时间 Python 2 Python 3

由以下机构支持

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