andrewrk / juice

Juice inlines CSS stylesheets into your HTML source.
MIT License
60 stars 13 forks source link

Should return error if link path can not be found #15

Open jeremypeter opened 9 years ago

jeremypeter commented 9 years ago

CSS does not get inlined when a user provides an unknown path to the link tag. I think the error should be returned. It seems to fail silently right now and returns the original html.

jrit commented 9 years ago

This makes sense, but is a potential breaking change for someone with existing templates being inlined that may not be aware this is happening. We'd probably need a major version bump to avoid breakage of dependencies.