Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 690 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 690 Bytes

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