Skip to content

cannot use pug template inheritance #459

Open
@benblazak

Description

@benblazak

bug

cannot use pug template inheritance

test

sample repo: https://github.com/benblazak/_svelte_preprocess__pug_template_inheritance

git clone https://github.com/benblazak/_svelte_preprocess__pug_template_inheritance.git
cd _svelte_preprocess__pug_template_inheritance
npm install
npm run dev -- --open
  • try the mixin link
    • this should work
  • try the template link
    • this should fail with the error message

      Declaration of template inheritance ("extends") should be the first thing in the file. There can only be one extends statement per file.

ideas

i think the reason extends ... is not the first thing in the file is because the svelte mixins are prepended here:

const input = `${GET_MIXINS(identationType ?? 'space')}\n${content}`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions