pyramid-bootstrap4 4.1.0

Creator: codyrutscher

Last updated:

Add to Cart

Description:

pyramidbootstrap4 4.1.0

Maintainer
Joe Black | me@joeblack.nyc | github


Introduction
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.


Installation
pip3 install pyramid_bootstrap4


Usage

App Factory Config
Include in your pyramid config either through .ini file, ZCML, or in python, ex:
config.include('pyramid_bootstrap')


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

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

{% block content %}
<h1>Hi {{ name }}</h1>
{% endblock content %}
home.pt
<metal:macro use-macro="master">
<metal:slot fill-slot="title">
<title>Quick Tutorial: ${name}</title>
</metal:slot>

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



Changes

CHANGELOG

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.