neuland / pug4j

a pug implementation written in Java (formerly known as jade)
MIT License
61 stars 12 forks source link

Unexpected token and not generating html #19

Open jmmccota opened 1 year ago

jmmccota commented 1 year ago

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.