Skip to main content

Genshi template bindings for the Pyramid web framework

Project description

Bindings for Genshi templating support under Pyramid.

To use pyramid_genshi, simply include pyramid_genshi in your Pyramid main function:

config.include('pyramid_genshi')

And you can use it as you use other template:

@view_config(route_name='home',
             renderer='my_project:templates/home.genshi')
def home(request):
    return 'Hello world'

To adjust output format, you can change genshi.method in settings.

genshi.method = xhtml

To adjust the default i18n domain, you can change genshi.default_domain in settings.

genshi.default_domain = my_domain

0.1.0

  • Initial version

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

pyramid_genshi-0.1.0.zip (12.8 kB view hashes)

Uploaded Source

Supported by

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