fastify-vash

1.1.2 • Public • Published

npm package

fastify-vash

Vash view renderer for fastify

Support me for future versions:

BMC

PAGSEGURO

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);
    });

Package Sidebar

Install

npm i fastify-vash

Weekly Downloads

11

Version

1.1.2

License

MIT

Unpacked Size

3.83 kB

Total Files

4

Last publish

Collaborators

  • ciro.spaciari