Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/joeblackwaslike/pyramid_bootstrap
- Owner: joeblackwaslike
- License: mit
- Created: 2018-04-13T00:18:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T00:39:40.000Z (over 6 years ago)
- Last Synced: 2024-11-15T05:16:22.909Z (about 2 months ago)
- Language: Python
- Size: 1.05 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)