It's pretty simple
npm install liquid-express-views
const express = require("express")
const app = require("liquid-express-views")(express())
that's it!
Need update leave issues and pull requests here: https://github.com/AlexMercedCoder/liquid-express-views\
Documentation for liquidjs: https://liquidjs.com/index.html
You can pass a secondary argument that is an object with the following properties:
(app) => {}
(engine) => {}
regarding layouts
If your using layouts you may want to add an absolute path to your views folder which can be done through either of the following:
replace
const app = require("liquid-express-views")(express())
with
const path = require("path")
const app = require("liquid-express-views")(express(), {root: [path.resolve(__dirname, 'views/')]})
or this
const app = require("liquid-express-views")(express(), {root: process.cwd() + "/views/"});