BowerStatic in Pyramid: why don't scripts reach the end of the body?

I am using pyramid_bowerstatic-0.3-py2.7, bowerstatic-0.8.1 in Pyramid 1.5.6 with SB Admin 2 bootstrap 3 theme (if it matters).

When switching on components with e.g.

request.include(components, 'jquery')

      

in a normally configured way (which uses a template):

@view_config(route_name='list', renderer='templates/list.pt', permission="view")
def list_view(self):
    request.include(components, 'jquery')
    return {'project': 'My', }

      

where (in the __init __ project):

components = pyramid_bowerstatic.create_components('sbadmin',
   os.path.join(os.path.dirname(__file__), 'sbadmin', 'bower_components'))

      

I am getting CSS and Javascript at the beginning of the html. And as far as I know, javascripts must go all the way to the end of the body. Also I am not sure how to control the order and possibly add selected javascripts to the head. bowerstatic seems to follow the order of inclusion, but at the same time it seems to take care of dependencies.

Can't find anything about this in the documentation. What am I missing?

+3


source to share


1 answer


As of now (May 2015), this is not possible in bower_static as per the ticket: https://github.com/faassen/bowerstatic/issues/32



+1


source







All Articles