vuejs / vueify

Browserify transform for single-file Vue components
MIT License
1.17k stars 152 forks source link

Pug: relative include/extends in templates #241

Open rsify opened 6 years ago

rsify commented 6 years ago

Using the include/exclude keywords inside of pug <template>'s as following:

<!-- component.vue -->
<template lang="pug">
div
  h1 This is the app
  include ./pug-included
  comp-a
  comp-b
</template>
// pug-included.pug
div Included content

...did not work before, as you ought to provide the filename option to pug's .compile() method to use those features.