【发布时间】:2020-07-19 03:00:44
【问题描述】:
"Mustache" 语法允许像这样定义数据:
<template>
<Window>
<template v-slot:title >
{{title}}
</template>
</Window>
</template>
但使用lang='pug' 编译失败:
<template lang='pug'>
<Window>
<template v-slot:title >
{{title}}
</template>
</Window>
</template>
出现此错误:
模块构建失败:意外文本“{{” ...
没有mustache 语法用法的其他模板使用lang='pug' 构建良好。 Pug 的 mustache 语法替代方案是什么?
【问题讨论】: