{"library":"kdu-template-compiler","type":"library","category":null,"description":"Pre-compiles Kdu 2.0 templates into render functions to avoid runtime compilation overhead and support CSP restrictions. v2.7.16 is the latest stable release. The package is auto-generated from the main Kdu repo. Compiles templates to JavaScript code with `with` statements, not compatible with strict mode. Provides `compile` and `compileToFunctions` methods. Unlike the full build, this allows compile-time optimization and directive transformations. Deprecated `preserveWhitespace` option (use `whitespace` instead). Ships TypeScript types.","language":"javascript","status":"maintenance","version":"2.7.16","tags":["javascript","kdu","compiler","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install kdu-template-compiler","imports":["const { compile } = require('kdu-template-compiler')","const { compileToFunctions } = require('kdu-template-compiler')","const compiler = require('kdu-template-compiler')"]},{"cmd":"yarn add kdu-template-compiler","imports":[]},{"cmd":"pnpm add kdu-template-compiler","imports":[]}],"homepage":"https://kdujs.com","github":"https://github.com/kdujs/kdu","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/kdu-template-compiler","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}