fastify-vash
v1.1.2
Published
Vash view renderer for fastify
Downloads
21
Maintainers
Readme
fastify-vash
Vash view renderer for fastify
Support me for future versions:
Quick Start
Configuration and Usage example
const path = require('path');
const fastify = require('fastify')();
fastify.register(require('fastify-vash'), {
settings: {
views: path.resolve('./views')
}
});
fastify.get('/', async (request, reply) => {
const model = {
message: 'Hello World'
};
reply.view('./home/index', model);
});