<%
  # Include this once a page then reference the symbols where you want them eg:
  #
  # <svg>
  #   <use xlink:href="#svg-arrow-right"></use>
  # </svg>
%>
<svg style="display: none;">
  <symbol id="svg-arrow-right" viewBox="0 0 22 34">
    <polygon points="0,5 5,0 22,17 5.1,34 0,29 12,17" />
  </symbol>
</svg>

<%
  # Include this once a page then reference the symbols where you want them eg:
  #
  # <svg>
  #   <use xlink:href="#svg-arrow-right"></use>
  # </svg>
%>
<svg <%= 'style="display: none;"' unless local_assigns[:no_styles] %>>
  <symbol id="svg-arrow-right" viewBox="0 0 22 34">
    <polygon points="0,5 5,0 22,17 5.1,34 0,29 12,17" />
  </symbol>
</svg>

Update svg_sprite to conditionally add the style attribute
Update svg_sprite to conditionally add the style attribute

This is required because you are not allowed style attribute in amp
webpages.
