Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

title is not a helper #123

Closed
ghost opened this issue Mar 29, 2018 · 7 comments
Closed

title is not a helper #123

ghost opened this issue Mar 29, 2018 · 7 comments

Comments

@ghost
Copy link

ghost commented Mar 29, 2018

After installing ember-page-title and including the {{title "title"}} helper in the template, ember still returns with the following error: Compile Error: title is not a helper

@tim-evans
Copy link
Contributor

Humm. This is transformed by using a HBS transform. You could use {{page-title}} as an alternative

@tim-evans
Copy link
Contributor

See https://github.com/tim-evans/ember-page-title/blob/latest/index.js#L9 for the code that makes this happen

@knownasilya
Copy link
Contributor

knownasilya commented Jun 6, 2018

As far as I know using {{title}} errors when using https://github.com/rwjblue/ember-angle-bracket-invocation-polyfill in your project.

Looks like title was a red herring, it seems like page-title is the issue, maybe the -.. who knows. I opened an issue there.

@tim-evans
Copy link
Contributor

@knownasilya there's a hbs precompile step that helps ember disambiguate between {{title}} the variable and {{title}} the helper. It essentially rewrites all {{title}} helpers (which have arguments) into {{page-title}} helpers.

@knownasilya
Copy link
Contributor

Yeah, looks like the invocation polyfill is broken for helpers of all kinds since v1.1.0 (v1.0.2 works).

@raido
Copy link
Contributor

raido commented Sep 24, 2020

I think this can be closed as we don't support {{title}} syntax no longer - #176

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

No branches or pull requests

3 participants