druvu-lib-web 2.0 lets Java developers write web templates in PHP syntax
druvu-lib-web 2.0.0 is a Java web framework built on Jetty 12 that uses PHP as its templating language. The engine supports real PHP 8 syntax — including variables, control structures, heredocs, and 115 standard functions — without requiring an actual PHP runtime. All template logic is executed in Java, and server-side attributes are passed directly as PHP variables in the page. A key change from version 1.x is that HTML output is escaped by default, reducing XSS risks unless developers explicitly opt out using raw(). The project is open source, with code, documentation, and a runnable example available on GitHub.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in