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

Unexpected token and not generating html #19

Open
jmmccota opened this issue Aug 14, 2023 · 0 comments
Open

Unexpected token and not generating html #19

jmmccota opened this issue Aug 14, 2023 · 0 comments

Comments

@jmmccota
Copy link

jmmccota commented Aug 14, 2023

I'm using ubuntu 22.04 and files are utf-8 and have an empty line at the end and pug4j version 2.0.6

When I call pug cli, it renders my template, but using pug4j I got

de.neuland.pug4j.exceptions.PugParserException: unexpected token "Indent"

here's my hierarchy

--> templates/
| _header.pug
\ --> brand1/
   | --> _footer.pug
   | --> _inner.footer.pug
   | --> file.pug

so, file includes header, also footer and footer includes inner.footer, file.pug looks like

include ../_header.pug
    include content.pug
        include _footer.pug

Calling pug4j works for a single file or a file that includes another one, but doesn't generate HTML, looks like is only loading pug files into a string.

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