Let's examine the scenario of having a single file component in Vue with the following structure:
// Article.vue
<template>
<div>
<h1>{{title}}</h1>
<p>{{body}}</p>
</div>
</template>
If we import this component into another file, is there a way to retrieve its template as a string?
import Article from './Article.vue'
const templateString = // How can we access the template-string of `Article`?
Eventually, the variable templateString
should hold the following content:
<div>
<h1>{{title}}</h1>
<p>{{body}}</p>
</div>