Embedded SVG Helper
A simple helper function that makes inline SVG embedding simple! Just add the asset_helpers.rb
file to your Middleman project's helpers
folder and it will automatically be loaded and made available to you in your templates. From there, simply call:
<%= embedded_svg("my-asset.svg") %>
And your SVG asset content will be embedded inline in your template. You can also pass the following options to the helper to add additional attributes to the SVG tag itself: