Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joeblackwaslike/pyramid_bootstrap

Pyramid extension that bundles all bootstrap 4 resources
https://github.com/joeblackwaslike/pyramid_bootstrap

Last synced: about 2 months ago
JSON representation

Pyramid extension that bundles all bootstrap 4 resources

Awesome Lists containing this project

README

        

# pyramid_bootstrap
[![Build Status](https://travis-ci.org/joeblackwaslike/pyramid_bootstrap.svg?branch=master)](https://travis-ci.org/joeblackwaslike/pyramid_bootstrap) [![Github Repo](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/joeblackwaslike/pyramid_bootstrap) [![Pypi Version](https://img.shields.io/pypi/v/pyramid_bootstrap.svg)](https://pypi.python.org/pypi/pyramid_bootstrap) [![Pypi License](https://img.shields.io/pypi/l/pyramid_bootstrap.svg)](https://pypi.python.org/pypi/pyramid_bootstrap) [![Pypi Wheel](https://img.shields.io/pypi/wheel/pyramid_bootstrap.svg)](https://pypi.python.org/pypi/pyramid_bootstrap) [![Pypi Versions](https://img.shields.io/pypi/pyversions/pyramid_bootstrap.svg)](https://pypi.python.org/pypi/pyramid_bootstrap)

## Maintainer
Joe Black | | [github](https://github.com/joeblackwaslike)

## 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
```shell
pip3 install pyramid_bootstrap
```

## Usage

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

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

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

{% block content %}

Hi {{ name }}


{% endblock content %}
```

`home.pt`
```chameleon


Quick Tutorial: ${name}


Hi ${name}


Chameleon is an XML-based templating language


```

## Changes
* [CHANGELOG](CHANGELOG.md)