-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add {{page-title}} to route templates #19224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some logic to the blueprint to detect if the app has ember-page-title
installed, and only add the {{page-title ...}}
invocation when it is?
322bc32
to
578f450
Compare
Sure, first I am just trying to get current test suite green and then add additional logic :) |
578f450
to
c374f96
Compare
Failed with some weird TypeError - https://github.com/emberjs/ember.js/pull/19224/checks?check_run_id=1298266214#step:7:109 - not sure if related or not @rwjblue ? |
c374f96
to
f32e33d
Compare
<% if (addTitle) {%>{{page-title "<%= routeName %>"}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Syntax is like this to keep whitespace consistent.
f32e33d
to
baf62f5
Compare
CI failure seems to be same with master branch. |
Actually, I am tempted to reverse test setup logic. So all previous tests would remain unchanged and "ember-page-title installed" cases are added. It is then much less changes. |
I believe #19225 will resolve that. |
baf62f5
to
ed56eeb
Compare
@rwjblue Rebased on master, CI green and tests refactored. |
Thanks @raido! |
Changes in this PR are for
ember-page-title
RFC - ember-cli/ember-cli#9370Related PR for
ember-cli
: ember-cli/ember-cli#9372TODO
ember-page-title
installed, and only add the{{page-title ...}}
invocation