fix(checkout): split checkout_page into helpers to avoid single-function OOM in elc --emit-header
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 11m34s

Extract nav and style blocks into checkout_nav_html() and checkout_style_html()
so the compiler processes each template in isolation rather than one 490-line
function with mixed HTML template AST and BinOp string concat.
This commit is contained in:
2026-05-07 16:00:53 -05:00
parent da669c67a1
commit 96fca7ebf7
2 changed files with 23 additions and 36 deletions
+4 -3
View File
@@ -1966,7 +1966,8 @@ fn page_open() -> String {
}
fn page_close() -> String {
return <script src="/js/chat-widget.js" defer></script>
let widgets: String = <div id="page-widgets">
<script src="/js/chat-widget.js" defer></script>
<!-- Neuron Demo Chat Widget -->
<div id="neuron-demo-btn">
@@ -2023,6 +2024,6 @@ fn page_close() -> String {
</div>
<script src="/js/styles.js" defer></script>
</body>
</html>
</div>
return widgets + "</body></html>"
}