How to use the @glimmer/util.templateMeta function in @glimmer/util

To help you get started, we’ve selected a few @glimmer/util 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 / test-helpers / lib / environment / modes / lazy / environment.ts View on Github external
preprocess(
    template: string,
    meta?: AnnotatedModuleLocator
  ): Template> {
    let wrapper = JSON.parse(precompile(template));
    let factory = templateFactory(wrapper);
    return factory.create(templateMeta(meta || DEFAULT_TEST_META));
  }
github glimmerjs / glimmer-vm / packages / @glimmer / test-helpers / lib / environment / components / emberish-glimmer.ts View on Github external
getJitStaticLayout(
    state: TestComponentDefinitionState,
    resolver: LazyRuntimeResolver
  ): CompilableProgram {
    return resolver.compilable(templateMeta(state.locator)).asLayout();
  }
github glimmerjs / glimmer-vm / packages / @glimmer / integration-tests / lib / locator.ts View on Github external
export function locatorFor(
  moduleLocator: ModuleLocator
): TemplateMeta> {
  let { module, name } = moduleLocator;

  let l: TemplateLocator = {
    module,
    name,
    kind: 'template',
    meta: templateMeta({ locator: moduleLocator }),
  };

  return templateMeta(l);
}
github glimmerjs / glimmer-vm / packages / @glimmer / test-helpers / lib / environment / components / emberish-glimmer.ts View on Github external
getAotStaticLayout(
    state: TestComponentDefinitionState,
    resolver: AotRuntimeResolver
  ): Invocation {
    let { locator } = state;

    return resolver.getInvocation(templateMeta(locator.meta.locator));
  }
github glimmerjs / glimmer-vm / packages / @glimmer / integration-tests / lib / locator.ts View on Github external
export function locatorFor(
  moduleLocator: ModuleLocator
): TemplateMeta> {
  let { module, name } = moduleLocator;

  let l: TemplateLocator = {
    module,
    name,
    kind: 'template',
    meta: templateMeta({ locator: moduleLocator }),
  };

  return templateMeta(l);
}
github glimmerjs / glimmer-vm / packages / @glimmer / integration-tests / lib / components / emberish-curly.ts View on Github external
getAotStaticLayout(
    state: EmberishCurlyComponentDefinitionState,
    resolver: AotRuntimeResolver
  ): Invocation {
    return resolver.getInvocation(templateMeta(state.locator));
  }