Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Pug: relative include/extends in templates #241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rsify
Copy link

@rsify rsify commented Oct 3, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant