Skip to content

Unexpected token and not generating html #19

@jmmccota

Description

@jmmccota

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions