Skip to content

Add Support for Class and ID on SVG

Compare
Choose a tag to compare
@nikkomiu nikkomiu released this 17 May 17:20
· 32 commits to master since this release

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>