@nx-js/render-middleware

An NX middleware, responsible for rendering and modularization.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Aug 24, 2017Dec 31, 2016Minified + gzip package size for @nx-js/render-middleware in KB

Readme

The render middleware factory

The render middleware factory allows you to modularize your components into separate JavaScript, HTML and CSS files.

  • name: render
  • direct middleware dependencies: none
  • all middleware dependencies: none
  • type: component middleware
  • docs

Installation

npm install @nx-js/render-middleware

Usage

const component = require('@nx-js/core')
const params = require('@nx-js/render-middleware')

component()
  .use(render({
    template: require('./view.html'),
    style: require('./style.css')
  }))
  .register('comp-name')

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.