Skip to main content

A pyramid routes composer for javascript.

Project description

# Pyramid JSRoutes

A pyramid routes composer for javascript.

## Installation

pip install -U pyramid-jsroutes

## Usage

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

def main():

… config.include(‘jsroutes’) … 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

### Note

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


0.1.0 (2013-07-06)

  • Initial commit

Project details

Download files

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

Source Distribution

pyramid-jsroutes-0.1.0.tar.gz (3.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page