rstacruz / sinatra-assetpack

Package your assets transparently in Sinatra.
http://ricostacruz.com/sinatra-assetpack/
MIT License
542 stars 97 forks source link

Add helpers without html tags #129

Open j15e opened 10 years ago

j15e commented 10 years ago

 I think we might create an helper method to do this more easily but we should not defer javascript by default neither as an option as I think this is out of the scope of a basic asset manager.

 We should offer alternate methods to <%= js :app %> ex. <%= js_path :app %> which would return only the URL and not a complete tag which allow you to use a defer script like would like to.

See #119

karlfreeman commented 10 years ago

Just looked into migrating away from a sprockets based asset pipeline and just tripped up over the lack of being able to render straight up asset urls in our javascript (eg to lazily load them later as html fragments in Angular.js) So I'll throw out a :+1:.