You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
427 B

import { Liquid } from 'liquidjs'
import pov from 'point-of-view'
import path from 'path'
/**
* plugin: usindg render engine liquidjs
*
*
*/
function plugin(fastify, options, next) {
{
const engine = new Liquid({
root: path.join(path.resolve(), '/views'),
extname: '.liquid',
})
fastify.register(pov, {
engine: {
liquid: engine
}
})
}
module.exports = plugin