Meta title template

Is there an easier way to do this templating thing with <title>?
function getPageTitle(title: string) {
  return `${title} - Dashboard`
}

export const Route = createFileRoute('/')({
  head: () => ({
    meta: [{ title: getPageTitle('Home') }],
  }),
  component: RouteComponent,
})

Like Next.js title template https://nextjs.org/docs/app/api-reference/functions/generate-metadata#template ?
Was this page helpful?