bbc / Imager.js

Responsive images while we wait for srcset to finish cooking
Apache License 2.0
3.84k stars 224 forks source link

Adding customisation to interpolation selector #135

Open Tasemu opened 8 years ago

Tasemu commented 8 years ago

I found when trying to use this with popular ecommerce solutions such as Shopify, the liquid syntax can play with the default matcher for interpolation. Also shopify and other frameworks can rewrite tags to generate CDN links to website assets which url encode the characters.

To allow for the plugin to be used, I have added the ability for the user to craft a custom selector which falls back to the default when not specified.