Skip to content

jte: model support #3602

Closed
Closed
@jknack

Description

@jknack

Add support for: https://jte.gg/jte-models

get("/static", ctx -> {
      var templates = new StaticTemplates();
      return templates.hello(new NavbarModel(), new WebsiteUrl(), "static");
});

get("/dynamic", ctx -> {
      var templates = new DynamicTemplates(require(TemplateEngine.class));
      return templates.hello(new NavbarModel(), new WebsiteUrl(), "dynamic");
});

See #3599

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions