Skip to content
This repository was archived by the owner on Nov 8, 2025. It is now read-only.

Pug4j templates #27

@noraj

Description

@noraj

Describe the feature

Support pug4j templates natively.

Additional context
I'm new to Java and I failed to register pug4j as a new engine.

        // Register Pug4J template engine
        JavalinRenderer.register((filePath, model, ctx) -> {
            PugTemplate template = Pug4J.getTemplate(filePath);
            return Pug4J.render(template, model);
        }, ".pug");

        app.get("/pug4j", ctx -> {
            ctx.render("views/test.pug", model("firstName", "John", "lastName", "Doe"));
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions