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
It would be nice to be able to specify a default subdirectory like images that automatically gets prepended to the path we pass into svg while also omitting the file extension as it seems very redundant given the nature of the method.
Example:
A file existing at src/images/icons/check.svg would allow us to simply write erb <%= svg 'icons/check' %> instead of erb <%= svg 'images/icons/check.svg' %>
The text was updated successfully, but these errors were encountered:
Great idea ... it'd definitely reduce the noise .... the change would have to be backward compatible though so no existing sites break.
I don't know when I'll get time to work on this so if you'd like to create a PR for it then I'm happy to accept this change, otherwise I'll work on it when I get some time.
It would be nice to be able to specify a default subdirectory like
images
that automatically gets prepended to the path we pass intosvg
while also omitting the file extension as it seems very redundant given the nature of the method.Example:
A file existing at
src/images/icons/check.svg
would allow us to simply writeerb <%= svg 'icons/check' %>
instead oferb <%= svg 'images/icons/check.svg' %>
The text was updated successfully, but these errors were encountered: