A template compiler for Yox.js, transforming Yox templates into render functions. Version 0.29.0 is the current stable release, with a slow release cadence. It requires yox-common, yox-config, yox-type, and yox-expression-compiler as peer dependencies. Key differentiator: designed specifically for the Yox.js framework, not a general-purpose template engine.
npm install yox-template-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a simple Yox template string to a render function object.
Update code to handle new return shape: render function is now under .code
Use compile or compileToFunctions instead
Install exact versions: yox-common@^0.20.0, yox-config@^0.3.0, etc.
Use a bundler like webpack or Rollup for browser builds
npm install yox-common@^0.20.0
Use import { compile } from 'yox-template-compiler'