semvec/pypi-packages huggingface dataset:
pyramid-bootstrap 4.1.0
Bootstrap 4.0 for Pyramid
License: MIT
Keywords: pyramid,bootstrap,reponsive,framework


pyramid_bootstrap
=================


.. image:: https://travis-ci.org/joeblackwaslike/pyramid_bootstrap.svg?branch=master
   :target: https://travis-ci.org/joeblackwaslike/pyramid_bootstrap
   :alt: Build Status

.. image:: https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat
   :target: https://github.com/joeblackwaslike/pyramid_bootstrap
   :alt: Github Repo

.. image:: https://img.shields.io/pypi/v/pyramid_bootstrap.svg
   :target: https://pypi.python.org/pypi/pyramid_bootstrap
   :alt: Pypi Version

.. image:: https://img.shields.io/pypi/l/pyramid_bootstrap.svg
   :target: https://pypi.python.org/pypi/pyramid_bootstrap
   :alt: Pypi License

.. image:: https://img.shields.io/pypi/wheel/pyramid_bootstrap.svg
   :target: https://pypi.python.org/pypi/pyramid_bootstrap
   :alt: Pypi Wheel

.. image:: https://img.shields.io/pypi/pyversions/pyramid_bootstrap.svg
   :target: https://pypi.python.org/pypi/pyramid_bootstrap
   :alt: Pypi Versions


Maintainer
----------

Joe Black | me@joeblack.nyc | `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
------------

.. code-block:: shell

   pip3 install pyramid_bootstrap

Usage
-----

App Factory Config
^^^^^^^^^^^^^^^^^^

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

.. code-block:: python

   config.include('pyramid_bootstrap')

Example templates
^^^^^^^^^^^^^^^^^

``home.jinja2``

.. code-block:: 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``

.. code-block:: chameleon

   <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 <CHANGELOG.md>`_
pyramid-bootstrap4 4.1.0
Bootstrap 4.0 for Pyramid
License: MIT
Keywords: pyramid,bootstrap,reponsive,framework


pyramid_bootstrap4
==================


.. image:: https://travis-ci.org/joeblackwaslike/pyramid_bootstrap.svg?branch=master
   :target: https://travis-ci.org/joeblackwaslike/pyramid_bootstrap
   :alt: Build Status

.. image:: https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat
   :target: https://github.com/joeblackwaslike/pyramid_bootstrap
   :alt: Github Repo

.. image:: https://img.shields.io/pypi/v/pyramid_bootstrap.svg
   :target: https://pypi.python.org/pypi/pyramid_bootstrap
   :alt: Pypi Version

.. image:: https://img.shields.io/pypi/l/pyramid_bootstrap.svg
   :target: https://pypi.python.org/pypi/pyramid_bootstrap
   :alt: Pypi License

.. image:: https://img.shields.io/pypi/wheel/pyramid_bootstrap.svg
   :target: https://pypi.python.org/pypi/pyramid_bootstrap
   :alt: Pypi Wheel

.. image:: https://img.shields.io/pypi/pyversions/base58check.svg
   :target: https://pypi.python.org/pypi/pyramid_bootstrap
   :alt: Pypi Versions


Maintainer
----------

Joe Black | me@joeblack.nyc | `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
------------

.. code-block:: shell

   pip3 install pyramid_bootstrap4

Usage
-----

App Factory Config
^^^^^^^^^^^^^^^^^^

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

.. code-block:: python

   config.include('pyramid_bootstrap')

Example templates
^^^^^^^^^^^^^^^^^

``home.jinja2``

.. code-block:: 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``

.. code-block:: chameleon

   <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 <CHANGELOG.md>`_