<template>
<div>
<h2>{{ title }}</2>
</div>
<template>
<script>
export default {
data() {
return {
title: "Hello world"
}
}
}
</script>
Works well in my opinion. Separates the template into its own section but keeps it inside the same file.