Removed Immediate.Apis, Added AOT Testing Scripts.
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user