jsx-engine
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

jsx-engine

Maintainability Test Coverage FOSSA Status

Install

yarn add jsx-engine

Usage

// server.js
const express = require('express')
const app = express()
app.engine('jsx', require('jsx-engine'))
app.set('views', path.join(__dirname, 'views'))
app.set('view engine', 'jsx')
app.get('/', (req, res) => {
  res.render('index')
});
// views/index.js
module.exports = () => {
  return (
    <html lang='en'>
      <head>
        <title>jsx-engine</title>
      </head>
      <body>
        <div>Hey!</div>
      </body>
    </html>
  );
}

License

FOSSA Status

Package Sidebar

Install

npm i jsx-engine

Weekly Downloads

0

Version

1.4.1

License

MIT

Unpacked Size

12.7 kB

Total Files

9

Last publish

Collaborators

  • dotconnor