Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    khufu_siteview 0.9.1

    Download button

    No screenshots available
    Downloads: 133  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Rocky Burt | More programs
    BSD License / FREE
    April 29th, 2011, 16:19 GMT [view history]
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    khufu_siteview description

    Easy template-to-view support

    khufu_siteview is a Pyramid add-on that 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.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Fixed bug where standard global renderer vars were being removed

      


    TAGS:

    template-to-view support | Pyramid add-on | Pyramid | template-to-view | jinja2

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM