I recently was looking into an ember addon, that helped me with managing content within <head>
.
Wasn't that easy and lead to this gist instead of me picking one of the provided addons.
Simply, because there were too much choices and each required research if it solves my problem and
having too many tabs open, the information began to blur.
There are plenty of ember addons to manipulate contents within <head>
with more or less features.
Lots of them have good functionality but the APIs are too much tighly coupled to routes, services or components.
That makes it hard to use the good functionality when you don't use the API entrypoint.
The idea is to unify this landscape and have one community standard solution to this problem.
Here are addons that help with this (partly from Header Content category from Emberobserver) and googling:
- ember-page-title
- ember-cli-head
- ember-head
- ember-cli-document-title-northm
- ember-cli-document-title
- @surkus/ember-cli-document-title
- ember-meta-meta
- mber-head
- ember-seo-meta-tags
- ember-frost-page-title
- ember-meta
And related:
- ember-crumbly
- ember-breadcrumbs
- @bagaar/ember-breadcrumbs
I added breadcrumbs here, too since for some they have breadcrumbs somewhere on the page and the same hierarchy in their document title. In both cases it's the same data being displayed in two different locations.
Given that information a person needs to research first on what to use and even then hope it fits their use-case.
I think we - as a community - can do better here and come up with one solution to use, which is the core of all it and then have various connectors to that, one for each given use-case. That way, the friction of which addon to use is minimalized and offers more adopters to ones individual implementations.
I think ember-cli-deploy
has shown how this can work out beautifully for the community, and my hope is to have something
similar for <head>
contents.
I thought about how to continue with that. Here are some ideas:
- If that would be an ember-core feature, it's easy it would start with an rfc. Starting and rfc about this, is kinda abusing the rfc repo.
- Open an issue at one of the repos and link from everywhere else.
- Ask for a discord channel (hard to write stuff down)
- Use gists
Honestly I'm not happy with either of these solutions but maybe a combined effort here. What if this situation is a nice start for community rfcs. It would extend the positive effects of rfcs for ember-core to focused problem from the community that are out of scope of ember-core. This would help to channel and focus the work into a group of people working on the same thing instead of me being "I create another addon, because the existing ones don't fit my problem". At the same time, create a discord channel to use this for direct communication around this. All-in-all it would even work in harmony with embers adopted addon initiative.
That would sound to me as an environment where I would start describing the problem, outlining solutions to it,
request feedback from the community to polish stuff before going into development. Just with the <head>
problem
at hand 😉 :)