Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fsh-org/server-htms

A server version of htms
https://github.com/fsh-org/server-htms

express fsh htms npm npm-package package

Last synced: 2 days ago
JSON representation

A server version of htms

Awesome Lists containing this project

README

        

# Server HTMS
A middleware for express that allows you to process [htms](https://htms.fsh.plus) in the server side instead of the client side

## Usage
```js
const express = require('express');
const app = express();
const htms = require('server-htms');

app.use(htms)

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