Skip to content

Releases: nikkomiu/phoenix_inline_svg

Read from Assets not Priv

01 Nov 18:37
Compare
Choose a tag to compare

Changes:

  • Read SVG assets from the assets dir instead of priv. Thanks to @mhanberg
    This changes the default directory from priv/static/svg to assets/static/svg
    Note For migrating from v1.3.x you will need to remove the otp_app from the use PhoenixInlineSvg.Helpers
  • Fix a bug where the app could crash if the SVG directory does not exist.

Update Floki

01 Nov 18:00
Compare
Choose a tag to compare

Changes:

  • Update Floki
  • Fix deprecation warnings
  • Update docs

Fix Issues

08 Aug 16:57
Compare
Choose a tag to compare
  • Fixes #21 - GZIP files are no longer attempted to be loaded on compile.
  • Fixes #19 - Ignores non-SVG files in the collection directories.

Add Support for HTML Attributes

23 May 21:44
3c51b31
Compare
Choose a tag to compare

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

08 Apr 15:40
Compare
Choose a tag to compare

Fixed a documentation bug on last release

Add Support for Endpoint

14 Feb 13:15
Compare
Choose a tag to compare

Thanks @mhanberg for adding the support for using an endpoint to read an SVG.

Add Support for Class and ID on SVG

17 May 17:20
Compare
Choose a tag to compare

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

29 Nov 18:00
22b46e2
Compare
Choose a tag to compare

Fix for the SVG directory not being found causing the app to crash.

Fixed by @mintcore

Removed SVG Wrapper

14 Sep 14:31
Compare
Choose a tag to compare

Removed the HTML wrapper for the SVG files

v1.0.0

29 Dec 19:19
Compare
Choose a tag to compare
Updated docs to use better "new way" descriptions