def includeme(config):
    """
    A hook for inclusion in a Pyramid app. You can set a
    static_view_name by assigning a value to
    ``jslibs.static_view_name`` in settings Defaults to:
    ``u"jslibs_static"``

    config
        An instance of ``pyramid.config.Configurator`` from the calling app.


    Example:

    .. code-block:: python

        ...

        def main(global_config, **settings):
            ...
            config = Configurator(...)
            config.scan('myapp')
            config.include('jslibs')
            ...
    """
    view_name = config.registry.settings.get(u'jslibs.static_view_name',
        u'jslibs_static')
    config.add_static_view(view_name, u'jslibs:resources/')
    config.scan('jslibs')
