PageEntrypoint.vala 552 B

1234567891011121314151617181920
  1. using Statum;
  2. namespace {{NS}} {
  3. public class {{CLASS}}PagePublic : Object {
  4. public string message { get; set; default = ""; }
  5. }
  6. /**
  7. * Entrypoint for {{ROUTE}}.
  8. */
  9. public class {{CLASS}}Entrypoint : StatumEntrypoint {
  10. public override async DirectiveBuilder handle() throws GLib.Error {
  11. var page = new {{CLASS}}PagePublic();
  12. page.message = "Replace this with your content.";
  13. return directives().set_typed<{{CLASS}}PagePublic>("page", Scope.PAGE, page);
  14. }
  15. }
  16. }