Skip to content

Conversation

@twokul
Copy link

@twokul twokul commented May 18, 2017

Current pragma tag proposal is {{use-component-manager "manager-id"}}.
Before compiling the template "manager-id" part would be extracted and
set on template's metadata.

index.js Outdated
}

precompile(content, options) {
return this.options.templateCompiler.precompile(content, options);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to funnel this through utils.template still

index.js Outdated
contents: string,
moduleName: relativePath
}) + ';';
return 'export default Ember.HTMLBars.template(' + this.precompile(stripBom(string), {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you break this up a bit so that we don't have so many invocations? Just thinking that we could make a few variables, and then use simple template string to concat...

(I know this isn't a new problem with this PR though...)

Current pragma tag proposal is {{use-component-manager ""}}.
Before compiling the template "" part would be extracted and
set on template's metadata.
@twokul
Copy link
Author

twokul commented May 22, 2017

I think this can be safely closed as this change is going to be landed upstream, see emberjs/ember.js#15254

@twokul twokul closed this May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants