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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    js.lightbox 0.1.1

    Download button

    No screenshots available
    Downloads: 82  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Andrew Mleczko | More programs
    GPL / FREE
    February 27th, 2012, 14:16 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    js.lightbox description

    Fanstatic jQuery lightbox

    js.lightbox is a Python library that packages jQuery lightbox for Fanstatic. It is aware of different modes (normal, minified).

    This requires integration between your web framework and fanstatic, and making sure that the original resources (shipped in the resources directory in js.lightbox) are published to some URL.

    How to use?

    This should be setup before rendering a page. See fanstatic for more information:

    >>> from fanstatic import init_needed
    >>> needed = init_needed(base_url='http://localhost')

    You can import lightbox from js.lightbox and .need it where you want these resources to be included on a page:

    >>> from js.lightbox import lightbox
    >>> lightbox.need()

    Render the inclusion:

    >>> print needed.render()

    < link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/lightbox/css/lightbox.css" / >
    < script type="text/javascript" src="http://localhost/fanstatic/jquery/jquery.js" >
    < script type="text/javascript" src="http://localhost/fanstatic/lightbox/js/lightbox.js" >< /script >



    Product's homepage

    Requirements:

    · Python
    · Fanstatic

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

    · Update manifest.ini (add gif) [amleczko]

      


    TAGS:

    jQuery lightbox | Python library | Fanstatic package | Python | jQuery | lightbox

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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