How to use?
===========

You can import the Bootstrap Datepicker from ``js.bootstrapdatepicker`` and
``need`` it where you want these resources to be included on a page::

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


Locales
=======

Also included are locales for the bootstrap datepicker.

How to get the right locale for the current request depends on your web framework.
In `Pyramid`_ you could e.g. do something like this::

  from js.bootstrapdatepicker import bootstrapdatepicker_locales
  from pyramid.i18n import get_locale_name

  locale_name = get_locale_name(request)
  if locale_name in bootstrapdatepicker_locales:
      bootstrapdatepicker_locales[locale_name].need()

.. _`Pyramid`: http://www.pylonsproject.org
