Description
export const Layout = (props: Props) => html`
<html>
<body>
${props.title.endsWith("example")
? html`
<a href="/">Reactive Mastro examples</a>
<h1>${props.title}</h1>
`
: ""}
<main>${props.children}</main>
</body>
</html>
`;
formats as follows in deno 2.3.1:
export const Layout = (props: Props) =>
html`
<html>
<body>
${props.title.endsWith("example")
? html`
<a href="/">Reactive Mastro examples</a>
<h1>${props.title}</h1>
`
: ""}
<main>${props.children}</main>
</body>
</html>
`;
Notice how the ternary expression is indented too little.