edgecase / dieter

Asset pipeline ring middleware
135 stars 22 forks source link

dieter should set mime types for .dieter files #11

Closed pbiggar closed 12 years ago

pbiggar commented 12 years ago

I have a solution to this in a branch. It's a ring middleware that adds the correct mime-type to files in the form file.css-123123123.dieter and file.js-123123123.dieter. This solves the problem that browser debugging tools dont work without a mime type.

In issue #19, @jxa suggested changing the file extensions of the generated files. That sounds like a slightly more complicated solution, because it breaks the obvious mapping between original files and generated files. Also, the filename handling code is very brittle at the moment, so I'm reluctant to touch it anymore.

pbiggar commented 12 years ago

I pushed this in b018f86fb0ff09f2fc99b9c1949a6ff736695ef1