using Statum; namespace {{NS}} { public class HomePagePublic : Object { public string message { get; set; default = ""; } } /** * Entrypoint for /: hydrates the page slot with a typed public model. */ public class HomeEntrypoint : StatumEntrypoint { public override async DirectiveBuilder handle() throws GLib.Error { var page = new HomePagePublic(); page.message = "It works — edit src/pages/home.html and this entrypoint to make it yours."; return directives().set_typed("page", Scope.PAGE, page); } } }