pug4j
pug4j copied to clipboard
a pug implementation written in Java (formerly known as jade)
I see that the latest release 2.1.0 should have org.graalvm.sdk:[email protected], but the pom.xml in the release (zip and on maven) still use version 21.3.2
Hi, This is my usage of Pug4J: ``` PugTemplate template; PugConfiguration config = new PugConfiguration(); config.setExpressionHandler(new GraalJsExpressionHandler()); try { template = config.getTemplate("src/main/resources/template/pdf-body.template.pug"); } catch (IOException e) { logger.error("Error getting PUG...
When I try to run `config.setExpressionHandler(new GraalJsExpressionHandler());` using 2.1.0 I get the following exception `java.lang.ClassNotFoundException: jdk.vm.ci.services.Services`. I also get this issue in 2.0.6, 2.05 and 2.04. When I go down...
In order to play with performance relevant options I'd like to be able to customize more properties of the JexlExpressionHandler: Including: 1. `cache` size (max number of cached expressions; default...
The example does not work with a record: ``` public record Book(String name, double price, boolean available) {} ``` I guess the reason is, that the record accessor methods are...
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...
CSS inside a `style.` block is output verbatim, not compacted.
Using the code in my .pug: include style.css I get the error: the included file [style.css] could not be opened Users/antony/IdeaProjects/X/target/classes/style.css (No such file or directory) You can see it's...
Upgrade graalvm from 21.3.0 to 22.2.0 fixing multiple vulnerabilities: https://www.cvedetails.com/version-list/93/57206/1/Oracle-Graalvm.html
The call stack of the issue: ``` java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "this.doctypeLine" is null at de.neuland.pug4j.template.PugTemplate.setDoctype(PugTemplate.java:73) ~[pug4j-2.2.0.jar:na] at de.neuland.pug4j.parser.node.DoctypeNode.execute(DoctypeNode.java:12) ~[pug4j-2.2.0.jar:na] at de.neuland.pug4j.parser.node.BlockNode.execute(BlockNode.java:32) ~[pug4j-2.2.0.jar:na] at de.neuland.pug4j.compiler.Compiler.compile(Compiler.java:31) ~[pug4j-2.2.0.jar:na] at de.neuland.pug4j.template.PugTemplate.process(PugTemplate.java:28) ~[pug4j-2.2.0.jar:na]...