thymeleafjs
thymeleafjs copied to clipboard
the element position confused after processed with thymeleafjs
const thymeleaf = require("thymeleaf");
const fs = require("fs");
const json = JSON.parse(fs.readFileSync("./demo.json", "utf8"));
const templateEngine = new thymeleaf.TemplateEngine(
thymeleaf.STANDARD_CONFIGURATION
);
templateEngine
.process(fs.readFileSync("./demo2.html", "utf8"), json)
.then((result) => {
console.log(result);
})
@ultraq