This works:
<div
class="pt-32 pb-24 bg-cover bg-no-repeat"
style={"background-image: url(#{Routes.static_url(@socket, "/images/home-bg.jpg")})"}
>
But it looks terrible and the syntax highlighting is all messed up. Is there a cleaner way to do this?
What I had before in leex was cleaner.
<div
class="pt-32 pb-24 bg-cover bg-no-repeat"
style="background-image: url(<%= Routes.static_url(@socket, "/images/home-bg.jpg") %>)"
>