og/views/spanwords.eta
2023-08-03 02:06:43 -05:00

5 lines
284 B
Text

<% /*
satori, the HTML-to-SVG engine we use, has no concept of "inline" or "inline-block"
CSS display values. So, we must emulate them with flex-wrap and making each word a <span>...
*/ %>
<% for (const word of it.text.split(/\s+/)) { %><span class="word"><%= word %></span><% } %>