Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 1x | // src/express/index.js
//
// Public entry point for @coherent.js/integrations/express. Re-exports the
// full runtime surface from coherent-express.js so the runtime matches the
// TypeScript declarations in ../../types/express/index.d.ts.
//
// `expressEngine` is preserved as a thin factory wrapper for backwards
// compatibility with consumers that imported it from the legacy
// @coherent.js/express package.
import { enhancedExpressEngine } from './coherent-express.js';
export {
coherentMiddleware,
createCoherentHandler,
enhancedExpressEngine,
setupCoherent,
createExpressIntegration
} from './coherent-express.js';
export { default } from './coherent-express.js';
/**
* Factory returning a classic Express view engine for Coherent.js views
* (see `enhancedExpressEngine`): `app.engine('js', expressEngine())`.
*
* @returns {(filePath: string, options: unknown, callback: (err: Error | null, html?: string) => void) => void}
*/
export function expressEngine() {
return enhancedExpressEngine;
}
|