also looking at this
fix(client): preserve client-signal {{ }} + bind SVG classes via setAttribute
#1774
4 files
+354
-293
| @@ -1630,7 +1630,7 @@ catch (e) { | ||
| 1630 | 1630 | if (el.nodeType === Node.TEXT_NODE) { |
| 1631 | 1631 | const text = el.textContent; |
| 1632 | 1632 | if (text && text.includes('{{')) { |
| 1633 | const parts = text.split(/(\\{\\{[^}]+\\}\\})/g); | |
| 1633 | const parts = text.split(/(\\{\\{[\\s\\S]+?\\}\\})/g); | |
| 1634 | 1634 | if (parts.length > 1) { |
| 1635 | 1635 | const fragment = document.createDocumentFragment(); |
| 1636 | 1636 | const parentEl = el.parentNode; |
| @@ -1639,7 +1639,7 @@ catch (e) { | ||
| 1639 | 1639 | // through nested @if/@for processing where componentScope may be restored |
| 1640 | 1640 | const capturedScope = { ...scope, ...(findElementScope(parentEl) || {}), ...globalHelpers }; |
| 1641 | 1641 | parts.forEach(part => { |
| 1642 | const match = part.match(/^\\{\\{\\s*(.+?)\\s*\\}\\}$/); | |
| 1642 | const match = part.match(/^\\{\\{\\s*([\\s\\S]+?)\\s*\\}\\}$/); | |
| 1643 | 1643 | if (match) { |
| 1644 | 1644 | const expr = match[1]; |
| 1645 | 1645 | // Skip placeholder expressions like __TITLE__ (build-time placeholders) |