wildhart:vue-pug

v0.2.0Published 15 hours ago

Integrate pug with vue single-file components for Meteor

Compatibility: Vue 1.x, Vue 2.x - Meteor 3.x (built with the Meteor 3 toolchain; on Meteor 1.x/2.x keep using akryum:vue-pug@0.1.3)

This meteor package adds pug support in your single-file .vue components.

wildhart:vue-pug is a Meteor 3 compatible republish of akryum:vue-pug, created by Guillaume CHAU (@Akryum). All credit to the original author. Changes from akryum:vue-pug@0.1.3:

  • The pug lang handler is a plain synchronous function instead of a fiber-based Meteor.wrapAsync wrapper, which cannot return a result on Meteor 3 (no fibers).
  • Rebuilt and published with the Meteor 3 toolchain (the 0.1.3 isopack bundles a fibers-era promise package that throws Cannot find module 'fibers' at plugin load on Meteor 3).

The fix has also been offered upstream.

Installation

meteor add wildhart:vue-pug

Usage

1<template lang="pug">
2.post
3  .message {{data.message}}
4    a.action(@click="removePost") x
5</template>

LICENCE ISC - Created by Guillaume CHAU (@Akryum)