Skip to main content

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 flask import Flask
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 GitHub with easy_install Flask-Genshi==dev but you probably want the latest stable release:

sudo easy_install Flask-Genshi

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.5.1.tar.gz (66.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for Flask-Genshi-0.5.1.tar.gz
Algorithm Hash digest
SHA256 a5bb9d3fbfb062a5e22bdf0665b446250be03718332bc3aea6e70e0264a746d6
MD5 700a77251ddf036a965578897cd24864
BLAKE2b-256 0e469956b60f1c7dc5295c4b1f767dd8e5ff653b50c402adcb49f47e849c1013

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.1 This release

1 file

0.5

1 file

0.4

1 file

0.3.1

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page