Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.
/ liquid-express Public archive

Better Liquid template engine for express.js

License

Notifications You must be signed in to change notification settings

twlite/liquid-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquid Express

Better Liquid template engine for express.

Installation

Install Express

npm install express

Install Liquid

npm install liquid

Install Liquid Express

npm install liquid-express

Example

server.js

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!"));

views/index.liquid

<!DOCTYPE html>
<html>
<head>
    <title>Liquid Express</title>
</head>
<body>
    <h1>Hello, My name is {{name}}!</h1>
</body>
</html>

Join my discord

https://discord.gg/2SUybzb

About

Better Liquid template engine for express.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published