Skip to content

Template Inheritance #1

@davidgovea

Description

@davidgovea

Doesn't seem like this loader supports jade's extends [name] inheritance..

one.jade

doctype 5
html
    body
        <h1>Test</h1>
        block content

two.jade

extends one

block content
    p Hello!

project.js

console.log( require('./two.jade')() );

Webpack complains that it can't find module two.jade.

What is the recommended approach here?

For now, I switched to a grunt task that compiles each template using jade -c & then lets webpack eat the precompiled templates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions