Metadata-Version: 1.0
Name: pyramid-jsroutes
Version: 0.1.0
Summary: A pyramid routes composer for javascript.
Home-page: https://github.com/marconi/pyramid-jsroutes
Author: Marconi Moreto
Author-email: caketoad@gmail.com
License: Copyright (c) 2012 Marconi Moreto.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
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.
        
        
        .. :changelog:
        
        History
        -------
        
        0.1.0 (2013-07-06)
        +++++++++++++++++++
        
        - Initial commit
        
Platform: UNKNOWN
