akryum:vue-blaze-template

v0.0.1Published 9 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Use Blaze templates in Vue components

Installation

meteor add akryum:vue-blaze-template

Usage

The v-blaze directive allow you to use any Blaze template in your Vue component. It expect an expression.

Static template name (don't forget the single quote):

1<div v-blaze="'loginButtons'"></div>

Dynamic template name (will switch the template reactively):

1<template>
2  <div v-blaze="templateName"></div>
3</template>
4
5<script>
6export default {
7  data: () => ({
8    templateName: 'loginButtons'
9  })
10}
11</script>