Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install khufu-siteview

How to install khufu_siteview

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install khufu-siteview
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.9.1 Available View build log
0.9 Available View build log
Windows (64-bit)
0.9.1 Available View build log
0.9 Available View build log
Mac OS X (10.5+)
0.9.1 Available View build log
0.9 Available View build log
Linux (32-bit)
0.9.1 Available View build log
0.9 Available View build log
Linux (64-bit)
0.9.1 Available View build log
0.9 Available View build log
 
Author
License
BSD
Imports
Lastest release
version 0.9.1 on Apr 27th, 2011

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

Subscribe to package updates

Last updated Apr 27th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.