Compiler module for OC (OpenComponents) that compiles Jade/Pug templates used by oc-template-jade components. Version 7.5.0 is the latest stable release with intermittent updates. Key differentiators: provides legacy support for both .jade and .pug files; part of the OC micro-frontends ecosystem; ships TypeScript types for safer integration. Known for version mismatches with OC core and template runtime packages.
npm install oc-template-jade-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a Jade/Pug template string with locals and logs the rendered HTML.
Upgrade templates to .pug extension or configure legacy support.
Use compile(template)(locals) instead of compile(template, options, callback).
Always pass { filename: String } in options even if empty.Install pug: npm install pug
Use named import: import { compile } from 'oc-template-jade-compiler'Provide options object with filename: compile(template, { filename: '/path/to/template.jade' })