UNPKG

@cloudpss/template

Version:

Lightweight string and object templating utilities with interpolation and formula support.

11 lines 618 B
import { TemplateCompiler } from './compiler.js'; export { VmError, VmExtern, VmModule, VmFunction, createVmContext, isVmContext, isVmExtern, isVmModule, isVmFunction, isVmValue, isVmAny, isVmArray, isVmCallable, isVmConst, isVmImmutable, isVmPrimitive, isVmRecord, isVmScript, isVmWrapper, wrapToVmValue, unwrapFromVmValue, configCheckpoint, } from '@mirascript/mirascript'; /** 创建模板 */ export function template(template, options = {}) { const opt = { objectKeyMode: 'template', ...options, }; return new TemplateCompiler(template, opt).build(); } //# sourceMappingURL=index.js.map