Skip to content

barakedry/render-middleware

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')

About

An NX middleware, responsible for rendering and modularization.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%