here is the sample i tried to get handlebars working:
<template lang="handlebars">
<div class="text-center">
<h1>{{title}}</h1>
<div>
{{data}}
</div>
</div>
</template>
<script>
export default {
data () {
return {
title: 'HBS DEMO',
body: 'This is the body'
}
}
</script>
before i did run npm i handlebars handlebars-loader
to install dependencies
it compiles and renders, but without data. data is not bound correctly. The context passed to handlebars template is ['handlebars', 'html', '..path to vue file...\xxx.vue']
.
Seems it is just a matter of passing right context to template