Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fsh-org/server-htms
- Owner: fsh-org
- License: other
- Created: 2024-03-08T19:57:10.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-18T17:05:03.000Z (about 1 month ago)
- Last Synced: 2024-11-15T04:57:16.294Z (5 days ago)
- Topics: express, fsh, htms, npm, npm-package, package
- Language: JavaScript
- Homepage: https://npmjs.com/package/server-htms
- Size: 32.2 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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')
})
```