SVGs & EEx Tags: Inlining from External File?

Yeah that was one I had tried and linked above. Unfortunately it inlines the SVG file after the template has been evaluated so any EEx tags included appear as strings.

I never worked out a clean way of doing it, and ended up resorting to treating the SVGs template partials and calling them with render/3. I’ll maybe swing back to it at some stage just to make things a little prettier but inlining them as an EEx template does the same job.

I’ve also been keeping an eye on a lib from CoinGaming called Bennu which looks promising, as well as Surface. Those approaches may end up being a better answer.