Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

append block in mixin triggered without called #3446

Open
Uriel-Alves opened this issue Sep 16, 2024 · 0 comments
Open

append block in mixin triggered without called #3446

Uriel-Alves opened this issue Sep 16, 2024 · 0 comments

Comments

@Uriel-Alves
Copy link

Uriel-Alves commented Sep 16, 2024

Pug Version: 3.0.2
Node Version: 17.7.1

Input JavaScript Values

Using expressJS into Node

pug.renderFile('anyfile.pug');

Input Pug

mixin whatEverNameItsAllwaysDeclared()
    append head_link__script
        script.
            alert("I'm not using this mixin, but these appears at code")
    h2 BLABLABLA

h1 Hello World

block head_link__script

Expected HTML

<h1>Hello World</h1>

Actual HTML

<h1>Hello World</h1>
<script>I'm not using this mixin, but these appears at code</script>

Additional Comments

I'm not sure if its a bug, but its crazy.
Just create any mixin, and dont call then.
The h2 will not created was expected, but it will append blocks...

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

No branches or pull requests

1 participant