Skip to main content

Bootstrap 4.0 for Pyramid

Project description

Build Status Github Repo Pypi Version Pypi License Pypi Wheel 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.


pip3 install pyramid_bootstrap


App Factory Config

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


Example templates


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

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

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

<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

Download files

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

Source Distribution

pyramid_bootstrap-4.1.0.tar.gz (1.2 MB view hashes)

Uploaded source

Built Distribution

pyramid_bootstrap-4.1.0-py2.py3-none-any.whl (1.2 MB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page