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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| khufu_siteview-0.9.1.tar.gz | 4.8 kB | Without provenance | Details for khufu_siteview-0.9.1.tar.gz |
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 |
Security for khufu_siteview 0.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.