Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load Javascript and CSS Libraries from a gem in a Sinatra app #1465

Prakriti-nith opened this Issue Aug 3, 2018 · 1 comment


None yet
2 participants
Copy link

Prakriti-nith commented Aug 3, 2018

I want to load Frontend Javascript and CSS Libraries from a gem in a Sinatra app. To include static (JS and CSS) files, we can move the files into a folder named public but I can not find a way to load them from a gem.


This comment has been minimized.

Copy link

kgrz commented Aug 25, 2018

You might have to rely on sprockets to do this. Sinatra directly can’t pick assets from inside of a gem. The recipes website has an example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.