Skip to main content

Overview

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.

Usage

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

Example:

from pyramid.config import Configurator

def app(global_conf, **settings):
    config = Configurator(settings=settings)
    config.include('khufu_siteview')
    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:

http://127.0.0.1:8080/favicon.ico   ->  /some/path/to/site/favicon.ico
http://127.0.0.1:8080/somepage.jinja2   ->  /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.

Credits

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

Changes

0.9.1 - Apr 26, 2011

  • fixed bug where standard global renderer vars were being removed

0.9 - Apr 18, 2011

  • first release

Release files for khufu_siteview 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for khufu_siteview 0.9.1
File Size Uploaded
khufu_siteview-0.9.1.tar.gz 4.8 kB Details

Release files / khufu_siteview-0.9.1.tar.gz

Download URL khufu_siteview-0.9.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e68ca047a62f96b7d738dd5ecb73713a5de5af7dffa9af3f8fca33c4a6a746b2
BLAKE2b-256 checksum
How to use checksums
f8274c9dc95c06e5c23b85dd864c87483cc23c22e7491aae466ec79058d19333
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.1 This release

1 release file

0.9

1 release 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