You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I am embedding SVG icons by calling a function {%= p.SVGSymbol("svg/icon/close.svg") %} that creates a SVG <use xlink> tag and remembers the symbol being used. And at the end of the template I embed the automatically generated SVG definitions (so that only icons that are actually used are embedded).
I know need to insert the sprite at the beginning of the content - before I know what icons I need to embed.
What would be the best way to achieve that without having to render all templates twice for every call?
The text was updated successfully, but these errors were encountered:
Currently I am embedding SVG icons by calling a function
{%= p.SVGSymbol("svg/icon/close.svg") %}
that creates a SVG<use xlink>
tag and remembers the symbol being used. And at the end of the template I embed the automatically generated SVG definitions (so that only icons that are actually used are embedded).I know need to insert the sprite at the beginning of the content - before I know what icons I need to embed.
What would be the best way to achieve that without having to render all templates twice for every call?
The text was updated successfully, but these errors were encountered: