Better Liquid template engine for express.
npm install express
npm install liquid
npm install liquid-express
const express = require("express"); // import express
const app = require("liquid-express")(express()); // this method injects liquid view engine to your app
app.get("/", (req, res) => {
res.render("index", { // render index.liquid
name: "Snowflake"
});
});
app.listen(3000, () => console.log("Server started!"));
<!DOCTYPE html>
<html>
<head>
<title>Liquid Express</title>
</head>
<body>
<h1>Hello, My name is {{name}}!</h1>
</body>
</html>