Phoenix Inline SVG - Inline SVG module for Phoenix Framework

phoenix_inline_svg
#1

Phoenix Inline SVG is a library for rendering SVG’s inline in your templates with support for adding arbitrary HTML attributes.

It also compiles your SVG’s into functions so your application won’t be slowed down due to reading from the file system.

Creator: Nikko Miu

6 Likes
#2

v1.3 has been released!

I contributed towards this release and asked Nikko if I could share the library on the forum, so here we are!

This release brings several features/fixes:

  • finishes the compile-time generated functions, allowing you to fully cache all of your SVG’s at runtime!
  • Allow any HTML attribute to be added, not just class and id. This works for compile-time generated functions as well as the runtime functions.
3 Likes