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
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:
+4
-3
@@ -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>"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user