Skip to content

Template rendering middleware for qoq (hbs, swig, pug, html...)

License

Notifications You must be signed in to change notification settings

qoq-ts/qoq-views

Repository files navigation

qoq-views

Template rendering middleware for qoq based on koa-views.

License npm

Installation

yarn add qoq-views

Usage

import { WebSlotManager } from 'qoq';
import { Views } from 'qoq-views';

export const webSlots = WebSlotManager.use(
  new Views(__dirname + '/views', {
    map: {
      html: 'underscore',
    },
  }),
);

Options

@see koa-views

About

Template rendering middleware for qoq (hbs, swig, pug, html...)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published