Demos /

ShellTemplate

Working framework components, paired with the Java that composes them.

ShellTemplate

Compile a shell and render its typed content slot in a separate local document.

Java composition
Component content = new Div().withChild(Header.H1("Template preview"))
    .withChild(new Paragraph("Content supplied at render time."))
    .withChild(Link.create("/demos/builders/shell-template", "Back to the builder example"));
ShellBuilder shell = ShellBuilder.create().withPageTitle("Template preview")
    .withSideNav(SideNavBuilder.create().addSection("Preview navigation")
        .addLink("Chat", "/chat").addLink("Documentation", "/docs").build(), true);
shell.buildTemplate().renderWithContent(content);
Open isolated full-document preview →