{"library":"oc-template-es6-compiler","title":"OC ES6 Template Compiler","description":"Compiles OC (OpenComponents) components using ES6 templates. Version 8.0.0 is the latest stable release. Part of the OpenComponents ecosystem, it provides a compiler for the oc-template-es6 template type. Differentiates from other template compilers by integrating specifically with OC's component architecture. Release cadence follows the OC ecosystem updates.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install oc-template-es6-compiler"],"cli":null},"imports":["import compiler from 'oc-template-es6-compiler'","import { Compiler } from 'oc-template-es6-compiler'","import { compile } from 'oc-template-es6-compiler'","import type { TemplateType } from 'oc-template-es6-compiler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import compiler from 'oc-template-es6-compiler';\nimport oc from 'oc';\n\nconst component = {\n  type: 'oc-template-es6',\n  view: '<div>Hello {{name}}</div>',\n  model: { name: 'World' }\n};\n\nconst compiled = compiler.compile(component);\nconsole.log(compiled);\n// Output: rendered HTML string","lang":"typescript","description":"Shows how to import and use the compiler to compile an OC ES6 component template.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}