og/views/spanwords.eta

5 lines
284 B
Text
Raw Normal View History

<% /*
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>...
*/ %>
2023-08-03 03:06:43 -04:00
<% for (const word of it.text.split(/\s+/)) { %><span class="word"><%= word %></span><% } %>