express-jsx
Express middleware that transforms jsx to js at request time.
Request the .js file and express-jsx will check for a matching filename with a .jsx extension and transform it to .js. If a .js file already exists, it will update it if the modified time is greater on the .jsx file.
Installation
npm install express-jsx
Example usage
var express = ;var jsxCompile = ;...var app = ;...app;app;...
Specify a destination directory for .js files
If you would like to keep your .jsx and .js files separate, you may provide an optional destination directory for transformed .js files.
...app; // make static middleware aware of your destination directoryapp;app;
License
MIT -- see the LICENCE
file for details