Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

macros for flask projects

Project Description
flask-macros
============

a collection of bootstrap3 jinja2 macros for use with flask apps

to use:

```python
from flask import Flask
from flask_macros import Macro

app = Flask(__name__)
macro = Macro(app)
```
now you can import any file from flask_macros/templates/macros/*.html
ie:
```jinja2
{% import 'forms.html' as form_macros with context %}
```
or just use the jinja global _macro

either
```jinja2
{% set form_macros = _macros.forms %}
{% call form_macros.form_group() %}
{{ formstuff }}
{% endcall %}
```
or
```jinja2
{% call _macros.forms.form_group() %}
{{ formstuff }}
{% endcall %}
```
Release History

Release History

This version
History Node

0.1.5

History Node

0.1.4

History Node

0.1.2

History Node

0.1.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
flask-macros-0.1.5.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Jan 22, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting