justjavac/template_examples/hello does not have a README file

    ProfileCard

    pub(all) struct ProfileCard {
    user : User
    bio :
    SafeHtml

    }

    Data model bound to templates/profile_card.mtpl.

    bio is wrapped in @template.SafeHtml because the template renders it with raw output after the caller has already decided the markup is trusted.

    User

    pub(all) struct User {
    name : String
    admin : Bool
    }

    User data rendered by the profile-card example.

    The template reads name for escaped text output and calls is_admin to choose between the admin and member branches.

    User::is_admin

    fn User::is_admin(self : User) -> Bool

    Returns whether the user should render the admin branch.

    The template calls this method directly from a conditional statement.

    render_demo

    fn render_demo() -> String raise

    Renders the profile-card example with stable sample data.

    Tests call this helper directly, while main prints the same rendered page for users running the example from the command line.