是否可以将lit-html模板(模板字符串)存储在外部文件中并在JS中即时读取/解析?还是在定义过程中需要变量范围?
template.html
<div>Hello ${firstName}</div>
<div>
Today is:
<strong>${date}</strong>
</div>
app.js
const template = (firstName, date) => {
// read file
const fileContents = fetch('template.html').then(...)
...
}