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!

A pyramid routes composer for javascript.

Project Description
Pyramid JSRoutes

A pyramid routes composer for javascript.


pip install -U pyramid-jsroutes


Include the package in your Pyramid app's main function:

def main():
return config.make_wsgi_app()

this will make `jsroutes` available to all your template context, then you can use it like:

<script type="text/javascript">${jsroutes|n}</script>

then you can start composing your Pyramid routes from javascript like:

JSROUTES.blog_post(1) // /posts/1


By default it'll only collect the routes once and store it in the registry but you can force reloading everytime for development by settings the following settings:

jsroutes.reload_routes = true


Each time your modify your Pyramid routes, you need to refresh your page to refetch the updated routes.

.. :changelog:


0.1.2 (2013-07-07)

- Removed rendering of build route args when route doesn't have args

0.1.1 (2013-07-06)

- Added `jsroutes.reload_routes` settings

0.1.0 (2013-07-06)

- Initial commit
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyramid-jsroutes-0.1.2.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Jul 7, 2013

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting