{"library":"oc-template-handlebars-compiler","title":"OC Handlebars Template Compiler","description":"OC-Template-Handlebars-Compiler is the compiler module for OpenComponents (OC) that handles compilation of components using the Handlebars templating engine. This package supports both the `oc-template-handlebars` and legacy `handlebars` template types. As part of the OC ecosystem (version 6.7.0), it integrates with the OC registry to compile Handlebars templates into server-rendered components. It is actively maintained by the OpenComponents team and ships TypeScript types. Key differentiator: it is specifically built for OpenComponents' component architecture, unlike standalone Handlebars compilers, and provides seamless integration with OC's server-side rendering pipeline.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install oc-template-handlebars-compiler"],"cli":null},"imports":["import { compile } from 'oc-template-handlebars-compiler'","import { getInfo } from 'oc-template-handlebars-compiler'","import type { CompilerOptions } from 'oc-template-handlebars-compiler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { compile } from 'oc-template-handlebars-compiler';\nimport { getInfo } from 'oc-template-handlebars-compiler';\n\nconst template = '<div>{{message}}</div>';\nconst info = getInfo();\nconsole.log('Compiler info:', info);\n\nconst compiled = compile(template, { type: 'oc-template-handlebars' }, {\n  version: '6.0.0',\n  handlebars: require('handlebars')\n});\nconsole.log('Compiled component:', compiled);","lang":"typescript","description":"Demonstrates importing compile and getInfo, then compiling a simple Handlebars template with version and handlebars instance.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}