1.0.0 • Published 2 years ago

@enhance/fastify-plugin v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@enhance/fastify-plugin

Render custom elements with file based routing.

Setup

Install with npm install @enhance/fastify-plugin, and app.register per the example below.

import Fastify from 'fastify'
import Enhance from '@enhance/fastify-plugin'

const app = Fastify()

app.register(Enhance)

app.listen({ port: 3000 }, console.log)

File based routing

Look at ./app and ./preview.mjs in this repo for an example. Learn more at enhance.dev.