Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twlite/liquid-express
Better Liquid template engine for express.js
https://github.com/twlite/liquid-express
Last synced: about 1 month ago
JSON representation
Better Liquid template engine for express.js
- Host: GitHub
- URL: https://github.com/twlite/liquid-express
- Owner: twlite
- License: isc
- Archived: true
- Created: 2020-09-12T15:15:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T15:16:34.000Z (about 4 years ago)
- Last Synced: 2024-09-20T00:27:54.646Z (about 2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Liquid Express
Better Liquid template engine for express.# Installation
## Install Express```sh
npm install express```
## Install Liquid
```sh
npm install liquid```
## Install Liquid Express
```sh
npm install liquid-express```
# Example
## server.js```js
const express = require("express"); // import express
const app = require("liquid-express")(express()); // this method injects liquid view engine to your appapp.get("/", (req, res) => {
res.render("index", { // render index.liquid
name: "Snowflake"
});
});app.listen(3000, () => console.log("Server started!"));
```
## views/index.liquid
```html
Liquid Express
Hello, My name is {{name}}!
```
# Join my discord
**[https://discord.gg/2SUybzb](https://discord.gg/2SUybzb)**