qoq-views

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i qoq-views

Weekly Downloads

4

Version

0.0.4

License

MIT

Unpacked Size

3.75 kB

Total Files

8

Last publish

Collaborators

  • fwh1990