server-htms

0.1.1 • Public • Published

Server HTMS

A middleware for express that allows you to process htms in the server side instead of the client side

Usage

const express = require('express');
const app = express();
const htms = require('server-htms');

app.use(htms)

app.get('/', (req, res) => {
  res.htms('file/path.html')
})

/server-htms/

    Package Sidebar

    Install

    npm i server-htms

    Weekly Downloads

    4

    Version

    0.1.1

    License

    ISC

    Unpacked Size

    4.89 kB

    Total Files

    3

    Last publish

    Collaborators

    • inventionpro