From c081ef281f0c0cb6e6f3e6340cf693a420d09450 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Tue, 27 Oct 2026 18:09:09 +0000
Subject: [PATCH 1/2] refactor(web): extract render_component helper function
Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com>
---
stdlib/src/web/renderer.rs | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/stdlib/src/web/renderer.rs b/stdlib/src/web/renderer.rs
index 5eb9ba74..2074a6e4 100644
--- a/stdlib/src/web/renderer.rs
+++ b/stdlib/src/web/renderer.rs
@@ -1768,6 +1768,12 @@ pub fn render_footer_block(html: &mut String, dsl: &DslBlockValue) {
html.push_str("");
}
+pub fn render_component(html: &mut String, dsl: &DslBlockValue) {
+ html.push_str("
");
+ render_children(html, dsl);
+ html.push_str("
");
+}
+
pub fn dsl_to_html_inner(val: &RuntimeValue, html: &mut String) {
if let RuntimeValue::DslBlock(dsl) = val {
match dsl.kind.as_str() {
@@ -1789,11 +1795,7 @@ pub fn dsl_to_html_inner(val: &RuntimeValue, html: &mut String) {
"nav" => render_nav(html, dsl),
"header" => render_header_block(html, dsl),
"footer" => render_footer_block(html, dsl),
- "component" => {
- html.push_str("");
- render_children(html, dsl);
- html.push_str("
");
- }
+ "component" => render_component(html, dsl),
"website" => {
render_children(html, dsl);
}
From af5add9aa7d40f4ed1c03157afc5677a6a6ee4a0 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Tue, 27 Oct 2026 18:10:20 +0000
Subject: [PATCH 2/2] refactor(web): extract render_component helper function
Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com>