Open rsify opened 6 years ago
Using the include/exclude keywords inside of pug <template>'s as following:
include
exclude
<template>
<!-- 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.
filename
.compile()
Using the
include
/exclude
keywords inside of pug<template>
's as following:...did not work before, as you ought to provide the
filename
option to pug's.compile()
method to use those features.