You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I I have non-image assets that are treated as binary files (pdfs, for instance). I'm not seeing how to customize resource mapping to make that happen.
I see that DefaultConfig.groovy (in grain itself) has a 'binary_files" var that appears to control what the default binary files are. It'd be nice to simply add another regex to that, but it's not clear how to do so.
I've tried customizing the ResourceMapper in the theme (I'm using the template theme) but my code doesn't appear to be being hit. I've tried logging and even throwing exceptions from inside ResourceMapper but nothing seems to produce any visible effect.
When I applied the change at first, the grain preview server continued to throw exceptions when serving pdfs; it seems that I had to clean first. For my own curiosity, why was a clean necessary?
I I have non-image assets that are treated as binary files (pdfs, for instance). I'm not seeing how to customize resource mapping to make that happen.
I see that DefaultConfig.groovy (in grain itself) has a 'binary_files" var that appears to control what the default binary files are. It'd be nice to simply add another regex to that, but it's not clear how to do so.
I've tried customizing the ResourceMapper in the theme (I'm using the template theme) but my code doesn't appear to be being hit. I've tried logging and even throwing exceptions from inside ResourceMapper but nothing seems to produce any visible effect.
Here's the error I'm seeing:
The text was updated successfully, but these errors were encountered: