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
{{ message }}
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.
A lot of my Eco templates in Rails have an image in them. Ideally, I'd love to name my file template.js.eco.erb and be able to use <%= image_tag ... %>. However, due to the template syntax being the same, this won't work.
Is there a recommended way to do this? Should I switch off ERB to Haml or some other templating engine?
The text was updated successfully, but these errors were encountered:
I've also been wanting to do this, but never got to looking any closer at it. For now, I just pass down the URL when rendering the templates. It works, but doesn't feel quite right.
+1 same problem here.. would like to use <%= asset_path ... %> tags but isn't possible yet. Some workaround is to name the file jst.erb.eco and use <%%= asset_path ... %> instead, but as @yeggeps said it doesnt feel right.
A lot of my Eco templates in Rails have an image in them. Ideally, I'd love to name my file template.js.eco.erb and be able to use <%= image_tag ... %>. However, due to the template syntax being the same, this won't work.
Is there a recommended way to do this? Should I switch off ERB to Haml or some other templating engine?
The text was updated successfully, but these errors were encountered: