Removed Immediate.Apis, Added AOT Testing Scripts.

This commit is contained in:
2026-05-05 18:47:11 +05:00
parent d7ff6f112a
commit bcdd543916
27 changed files with 623 additions and 422 deletions
+6 -2
View File
@@ -69,8 +69,12 @@ public static class HtmxGeneratedExtensions
writer.Advance(data.Length);
}}
public static HtmxResult WriteHtmxBody(this HttpContext context, IHtmxComponent component)
=> new HtmxResult(component);
public static void WriteToResponseBody(this IHtmxComponent component, HttpContext context)
{{
context.Response.ContentType = ""text/html; charset=utf-8"";
var renderContext = new HtmxRenderContext(context.Response.BodyWriter);
component.Render(renderContext);
}}
}}";
spc.AddSource("HtmxInfrastructure.g.cs", SourceText.From(infrastructureSource, Encoding.UTF8));
});