Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const resolverDelegate = new ResolverDelegate();
const resolver = new Resolver();
Application.resolver = resolver;
Application.resolverDelegate = resolverDelegate;
//Order here is important due to handle's being generated by plugin
this.parseTemplates(appFolder);
// this.parseComponents(appFolder);
this.registerState(components);
setupGlimmer(resolverDelegate, resolver);
this.registerHelpers(helpers);
//-----------------------------------------------------------------
Application.document = new DocumentNode();
Application.rootFrame = createElement('Frame');
Application.rootFrame.setAttribute('id', 'root');
Application.document.appendChild(Application.rootFrame);
Application.context = Context(GlimmerResolverDelegate);
}
static renderPage(name, containerElement, nextSibling = null, state) {
const resolverDelegate = new ResolverDelegate();
const resolver = new Resolver();
Application.resolver = resolver;
Application.resolverDelegate = resolverDelegate;
//Order here is important due to handle's being generated by plugin
this.parseTemplates(appFolder);
// this.parseComponents(appFolder);
this.registerState(components);
setupGlimmer(resolverDelegate, resolver);
this.registerHelpers(helpers);
//-----------------------------------------------------------------
Application.document = new DocumentNode();
Application.rootFrame = createElement('Frame') as FrameElement;
Application.rootFrame.setAttribute('id', 'root');
Application.document.appendChild(Application.rootFrame);
Application.context = Context(GlimmerResolverDelegate);
}