Skip to main content

An extension to Flask for easy Genshi templating.

Project description

Flask-Genshi is an extension to Flask that allows you to easily use Genshi for templating. Easily switch between HTML5 and XHTML and have the mimetype set automatically for you.

from flaskext.genshi import Genshi, render_response

app = Flask(__name__)
genshi = Genshi(app)

@app.route('/')
def index():
    title = 'Genshi + Flask, a match made in heaven!'
    return render_response('index.html', dict(title=title))

You can install the development version from Bitbucket with easy_install Flask-Genshi==dev but you probably want the latest stable release:

sudo easy_install Flask-Genshi

Project details


Download files

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

Source Distribution

Flask-Genshi-0.3.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file Flask-Genshi-0.3.tar.gz.

File metadata

  • Download URL: Flask-Genshi-0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Flask-Genshi-0.3.tar.gz
Algorithm Hash digest
SHA256 c20f953cc91ec1dbd99aa1a3a22200e73660fa257ee9657335f0cd9de2caf812
MD5 28067e584efe28465fbac40bb765e959
BLAKE2b-256 e0611e992b7a4529529bfadfa0e70e521519bc022535e05b0ad93870e55596d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page