New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

liquid-express

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liquid-express

Liquid template engine for express.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

express

FAQs

Package last updated on 12 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts