<file_sep>Introduction
============

This library packages `bootstrap-slider`_ for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org
.. _`bootstrap-slider`: https://github.com/seiyria/bootstrap-slider/

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js.bootstrap_slider``) are published to some URL.
<file_sep>import js.jquery
from fanstatic import Library, Resource, Group

library = Library('bootstrap-slider', 'resources')

slider_css = Resource(
    library, 'bootstrap-slider.css',
    minified='bootstrap-slider.min.css')

slider_js = Resource(
    library, 'bootstrap-slider.js',
    minified='bootstrap-slider.min.js',
    depends=[js.jquery.jquery])

slider = Group([slider_css, slider_js])
