ExpressCjs
coffee-react / jade / stylus middleware for Single Page Application on Express4
API
expressCjs(options)
-> middleware
- If GET
/
to parse/index.jade
- If GET
/index.js
to parse/index.coffee
with ng-annotate - If GET
/index.css
to parse/index.styl
with kouto-swiss
// Dependenciesvar express= ;var cjs= ; // EnvironmentifprocessenvPORT===undefined processenvPORT= 59798;// Default optionsvar options= // specify the parse location cwd: process // if true, compress & cache result debug: processenvNODE_ENV==='production' // if true, include node_modules bundleExternal: true // if true, use `coffee-reactify` (do not use `coffeeify`) useReactify: true // if true, use `browserify-ngannotate` at /index.coffee useNgannotate: true // if true, use `plain-jadeify` at /index.coffee usePlainJadeify: true // if true, use `brfs` at /index.coffee useBrfs: true // if true, always parse `/index.jade` at 'GET *' (for no matches) html5Mode: false; // Setup & Bootvar app= ;app;app;
Related projects
- express-cjs
- express-onefile
- difficult-http-server