-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Would it be possible to add support for vue?
Here's a sample file. The{{}} is for js, $t is the gettext function.
It should be possible to just use the HTML parser but only in the <template> section of the vue file.
<template>
<div>
<div v-if="loading" class="loading">{{$('loading')}}</div>
<template v-else>
This is the homepage.<br>
<form>
<input v-model="series.id" type="text"></input>
<input v-model="series.name" type="text"></input>
<button>{{$t('series.add.new')}}</button>
</form>
<div v-for="series in allSeries">{{series}}</div>
</template>
</div>
</template>
<script>
export default {
name: 'Home',
data() {
return {
series: {
id: '',
name: ''
},
loading: true
};
}
};
</script>
<style lang="scss">
.loading {
color: red;
}
</style>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels