1.1.2 • Published 3 years ago

fastify-vash v1.1.2

Weekly downloads
47
License
MIT
Repository
github
Last release
3 years ago

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

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago