Skip to main content

Bootstrap 4.0 for Pyramid

Project description


.. image::
:alt: Build Status

.. image::
:alt: Github Repo

.. image::
:alt: Pypi Version

.. image::
:alt: Pypi License

.. image::
:alt: Pypi Wheel

.. image::
:alt: Pypi Versions


Joe Black | | `github <>`_


Pyramid extension that bundles all bootstrap 4 resources, including
font-awesome. Allows for locally hosted development and CDN hosted production.

Also includes master layout template for jinja2 and chameleon template languages.


.. code-block:: shell

pip3 install pyramid_bootstrap4


App Factory Config

Include in your pyramid config either through .ini file, ZCML, or in python, ex:

.. code-block:: python


Example templates


.. code-block:: jinja2

{% extends "pyramid_bootstrap:/templates/bs4/layout.jinja2" %}

{% block title %}Quick Tutorial: {{ name }}{% endblock title %}

{% block content %}
<h1>Hi {{ name }}</h1>
{% endblock content %}


.. code-block:: chameleon

<metal:macro use-macro="master">
<metal:slot fill-slot="title">
<title>Quick Tutorial: ${name}</title>

<metal:slot fill-slot="content">
<h1>Hi ${name}</h1>
<p>Chameleon is an XML-based templating language</p>



Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyramid_bootstrap4-4.1.0-py2.py3-none-any.whl (1.2 MB) Copy SHA256 hash SHA256 Wheel py2.py3
pyramid_bootstrap4-4.1.0.tar.gz (1.2 MB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page