How to use the @glimmer/compiler.TemplateCompiler.compile function in @glimmer/compiler

To help you get started, we’ve selected a few @glimmer/compiler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glimmerjs / glimmer-vm / packages / @glimmer / bundle-compiler / lib / bundle-compiler.ts View on Github external
preprocess(locator: ModuleLocator, input: string): SerializedTemplateBlock {
    let options = { meta: locator, plugins: { ast: this.plugins } };
    let ast = preprocess(input, options);
    let template = TemplateCompiler.compile(ast, input);
    return template.toJSON();
  }

@glimmer/compiler

MIT
Latest version published 1 month ago

Package Health Score

77 / 100
Full package analysis

Similar packages