Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
fastify
GitHub Repository: fastify/point-of-view
Path: blob/main/benchmark/fastify-edge.js
106 views
1
'use strict'
2
3
const { Edge } = require('edge.js')
4
const { join } = require('node:path')
5
const edge = new Edge()
6
edge.mount(join(__dirname, '..', 'templates'))
7
8
require('./setup.js')({
9
engine: { edge },
10
route: (_req, reply) => {
11
reply.view('index.edge', { text: 'text' })
12
}
13
})
14
15