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

Add locals object in pug render function #182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jerffersonferreira
Copy link

This PR is going to solve this issue: #181
Now it's possible to define variables in vueify config to be used inside a pug template:

// vue.config.js
module.exports = {
  pug: {
    basedir: __dirname,
    data: {
      imageBasePath: 'https://example.com/'
    }
  }
};

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy