https://github.com/joeblackwaslike/pyramid_bootstrap
Pyramid extension that bundles all bootstrap 4 resources
https://github.com/joeblackwaslike/pyramid_bootstrap
Last synced: 4 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 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T00:39:40.000Z (over 7 years ago)
- Last Synced: 2025-03-05T23:11:34.888Z (4 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
[](https://travis-ci.org/joeblackwaslike/pyramid_bootstrap) [](https://github.com/joeblackwaslike/pyramid_bootstrap) [](https://pypi.python.org/pypi/pyramid_bootstrap) [](https://pypi.python.org/pypi/pyramid_bootstrap) [](https://pypi.python.org/pypi/pyramid_bootstrap) [](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)