Skip to content

Using include statement in pug templates #472

Closed
@michaelalhilly

Description

@michaelalhilly

It seems it is not possible to include a pug template within a .vue file. It would be nice if we could do this:

div#app
    include "some-template"

I've tried backing out of the template and entry script directories and neither worked.

include "../../html/partials/some-template"
include "../html/partials/some-template"

Current project structure is:

root
-src
--html
---partials
----some-template.pug
--js
---main.js (entry)
---view
----app.vue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions