1.0.0 • Published 3 years ago
@enhance/fastify-plugin v1.0.0
@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.
1.0.0
3 years ago