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

text/x-handlebars MIME Type not supported in sprocket #148

Open
imechemi opened this issue Mar 3, 2016 · 0 comments
Open

text/x-handlebars MIME Type not supported in sprocket #148

imechemi opened this issue Mar 3, 2016 · 0 comments

Comments

@imechemi
Copy link

imechemi commented Mar 3, 2016

Hi, after upgrading rails from 4.2.4 to 4.2.5.1, the sprocket gem also got updated from 3.4.0 to 3.5.2. And my application broke while rendering .hamlbars file from assets.

The backtrace from app ends at this line from sprocket when the text/x-handlebars mime type is not found.

Below are the MIME types I found using puts from sprockets at that line and it doesn't have "text/x-handlebars" in the list.

{"application/javascript"=>{:extensions=>[".js"], :charset=>#<Method: Module(Sprockets::EncodingUtils)#detect_unicode>}, 
"application/json"=>{:extensions=>[".json"], :charset=>#<Method: Module(Sprockets::EncodingUtils)#detect_unicode>}, 
"application/xml"=>{:extensions=>[".xml"]}, 
"text/css"=>{:extensions=>[".css"], :charset=>#<Method: Module(Sprockets::EncodingUtils)#detect_css>}, 
"text/html"=>{:extensions=>[".html", ".htm"], :charset=>#<Method: Module(Sprockets::EncodingUtils)#detect_html>}, 
"text/plain"=>{:extensions=>[".txt", ".text"], :charset=>#<Method: Module(Sprockets::EncodingUtils)#detect>}, 
"text/yaml"=>{:extensions=>[".yml", ".yaml"], :charset=>#<Method: Module(Sprockets::EncodingUtils)#detect_unicode>}, 
"image/x-icon"=>{:extensions=>[".ico"]}, 
"image/bmp"=>{:extensions=>[".bmp"]}, 
"image/gif"=>{:extensions=>[".gif"]}, 
"image/webp"=>{:extensions=>[".webp"]}, 
"image/png"=>{:extensions=>[".png"]}, 
"image/jpeg"=>{:extensions=>[".jpg", ".jpeg"]}, 
"image/tiff"=>{:extensions=>[".tiff", ".tif"]}, 
"image/svg+xml"=>{:extensions=>[".svg"]}, 
"video/webm"=>{:extensions=>[".webm"]},
"audio/basic"=>{:extensions=>[".snd", ".au"]}, 
"audio/aiff"=>{:extensions=>[".aiff"]}, 
"audio/mpeg"=>{:extensions=>[".mp3", ".mp2", ".m2a", ".m3a"]}, 
"application/ogg"=>{:extensions=>[".ogx"]}, 
"audio/midi"=>{:extensions=>[".midi", ".mid"]}, 
"video/avi"=>{:extensions=>[".avi"]}, 
"audio/wave"=>{:extensions=>[".wav", ".wave"]}, 
"video/mp4"=>{:extensions=>[".mp4", ".m4v"]}, 
"application/vnd.ms-fontobject"=>{:extensions=>[".eot"]}, 
"application/x-font-ttf"=>{:extensions=>[".ttf"]}, 
"application/font-woff"=>{:extensions=>[".woff"]}}

I am not sure if this is handlebars_assets or sprocket issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant