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

macros for flask projects

Project Description


a collection of bootstrap3 jinja2 macros for use with flask apps

to use:

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
{% import 'forms.html' as form_macros with context %}
or just use the jinja global _macro

{% set form_macros = _macros.forms %}
{% call form_macros.form_group() %}
{{ formstuff }}
{% endcall %}
{% call _macros.forms.form_group() %}
{{ formstuff }}
{% endcall %}

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(3.5 kB) Copy SHA256 Hash 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