Releases: nikkomiu/phoenix_inline_svg
Releases · nikkomiu/phoenix_inline_svg
Read from Assets not Priv
Changes:
- Read SVG assets from the assets dir instead of priv. Thanks to @mhanberg
This changes the default directory frompriv/static/svg
toassets/static/svg
Note For migrating from v1.3.x you will need to remove theotp_app
from theuse PhoenixInlineSvg.Helpers
- Fix a bug where the app could crash if the SVG directory does not exist.
Update Floki
Changes:
- Update Floki
- Fix deprecation warnings
- Update docs
Fix Issues
Add Support for HTML Attributes
This release adds support for any arbitrary HTML attributes as well as fixes bugs around HTML attribute caching for SVGs.
Thanks to @mhanberg for all the great work fixing bugs and implementing features!
Fix Doc Bug
Fixed a documentation bug on last release
Add Support for Endpoint
Thanks @mhanberg for adding the support for using an endpoint to read an SVG.
Add Support for Class and ID on SVG
Adds support for ID and Class attrs on the SVG element.
<%= svg_image(@conn, "home", class: "logo", id: "bounce-animation") %>
Will result in the output:
<svg class="logo" id="bounce-animation">...</svg>
Fix for svg Dir Not Found
Fix for the SVG directory not being found causing the app to crash.
Fixed by @mintcore
Removed SVG Wrapper
Removed the HTML wrapper for the SVG files