import express from "express"; import { Liquid } from "liquidjs"; const engine = new Liquid(); const app = express(); const port = 3430; app.engine('liquid', engine.express()); app.set('views', ['./partials', './views']); app.set('view engine', 'liquid'); app.get('/', function (req, res) { const todos = ['fork and clone', 'make it better', 'make a pull request'] res.render('todolist', { todos: todos, title: 'Welcome to liquidjs!' }) }) app.listen(port, () => { console.log('✅ Webserver started on port ', port) })