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!

Easy template-to-view support

Project Description


khufu_siteview is an addon for Pyramid hows the registration of a view that can be used to serve all .jinja2 files out of a directory as subviews without the need to map them directly.


Standard setup is to Configurator.include the khufu_siteview package and then add new views as necessary.


from pyramid.config import Configurator

def app(global_conf, **settings):
    config = Configurator(settings=settings)
    config.add_templateview_route('/some/path/to/site', '/')
    return config.make_wsgi_app()

The previous example mounts the view at the root of the new Pyramid application. The following example url’s would work:   ->  /some/path/to/site/favicon.ico   ->  /some/path/to/site/somepage.jinja2

Static assets such as gif’s and ico’s will be looked up as if the view was static.


Created and maintained by Rocky Burt <rocky AT serverzen DOT com>.


0.9.1 - Apr 26, 2011

  • fixed bug where standard global renderer vars were being removed

0.9 - Apr 18, 2011

  • first release

Release History

This version
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.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.8 kB) Copy SHA256 Hash SHA256
Source None Apr 26, 2011

Supported By

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 Google Google Cloud Servers