// SPDX-FileCopyrightText: Copyright 2024 Fabio Iotti // SPDX-License-Identifier: AGPL-3.0-only using CommentsEngine.Data; namespace CommentsEngine; class IndexPage : PageSlim { public static IndexPage Instance { get; } = new(); IndexPage() { } protected override ReadOnlySpan ContentTemplate => """ Document |{0}| |{0:000.000##}| """u8; protected override ValueTask HandleAsync(HttpContext context, Memory templateArgs) { templateArgs.Span[0] = 12.34; return ValueTask.CompletedTask; } }