Closed ludwiczakpawel closed 2 years ago
Thanks for the issue, we will take it into consideration! Our team of engineers is busy working on many types of features, please give us time to get back to you.
Feature requests that require more discussion may be closed. Read more about our feature request process on forem.dev.
To our amazing contributors: issues labeled type: bug
are always up for grabs, but for feature requests, please wait until we add a ready for dev
before starting to work on it.
To claim an issue to work on, please leave a comment. If you've claimed the issue and need help, please ping @forem/oss. The OSS Community Manager or the engineers on OSS rotation will follow up.
For full info on how to contribute, please check out our contributors guide.
Hey, @Posandu, I appreciate you looking into this issue, however this is something we will likely take care of internally as Forem Team (this document is indeed internal). I should have added "Forem team" label earlier which would likely prevent this confusion – I apologize for that.
My current approach with this Epic is to implement {% embed url %}
for all Liquid Tags, BUT leave the original {% liq-tag-name input %}
syntax in place.
For example, for the YoutubeTag, I am implementing {% embed https://www.youtube.com/embed/fhH5xX_yW6U %}
but leaving the original {% youtbe fhH5xX_yW6U %}
in place.
In the near future, pod-CE will decide how to deprecate the original LiquidTag implementations.
= = = = = = = = =
<details>
HTML elementassign break capture case cycle decrement echo for if ifchanged include increment render tablerow unless
{"message": "Internal server error"}
; I think the service is not active anymore)I'm suuuuper excited and pumped about this project! So glad to see you working on this and can't wait for this to be shipped! 🤩 🤩 🤩
Couple questions/notes:
{ http://example.com }
format instead of {% embed http://example.com %}
(so no %
and no embed
keyword)? At least that's what we spec'd.Correct me if I'm wrong but weren't we aiming for { http://example.com } format instead of {% embed http://example.com %} (so no % and no embed keyword)? At least that's what we spec'd.
That's a good question. In the liquid parsing the implementation of the embed
tag follows the current other tag implementations. So, while it might be possible to get to { embed }
I suspect that we're going to have to store {% embed %}
(but that's based on now decade old memories of last working with Liquid).
Hey @ludwiczakpawel thanks for your comments and questions
Correct me if I'm wrong but weren't we aiming for { http://example.com } format instead of {% embed http://example.com %} (so no % and no embed keyword)? At least that's what we spec'd.
Hmmm I missed this in the specifications file. Hmmm I would need to discuss with @jeremyf about the { url }
approach. My current approach is to unify all tags to be of the form {% embed url %}
. Perhaps after this incremental change, we could explore not needing the embed
keyword.
This project is a huge one, and will require a gradual, incremental rollout, as well as ensuring that existing tags are not broken. Jeremy is working with me, so we shall certainly fulfill all spec requirements.
All good, just wanted to rise my concerns/questions before it's too late :)
(there was a gif but it as driving me nuts)
You don't mention that generic embeds idea for the rest of the URLs (that we currently not support) - is this still something on the radar? I'm sure it is, just making sure we're all on the same page :)))
I'm glad your helping us keep this salient. And I think I'm going to spend some time articulating the larger roll out plan. I know we have a google doc, but we're heading into a checklist kind of effort.
What Arit's doing is to shore up the interface, so we can reduce immediate overhead. Then in quick order, look into using OpenGraph (or Twitter Cards or what have you) to see about doing a more generalized approach for embeds.
@jeremyf great. I just wasn't aware of that (sorry, I might have missed a doc or something). So thank you for quick explanation!
I'm closing this issue as the work for this iteration of streamlining rich-content embeds has been completed. 🎉
What about Generic Embeds? It's been part of this issue and I don't want it to be forgotten.
@ludwiczakpawel Thanks so much for catching this and yes this needs to be done.
This is a great upgrade! Thanks for everyone’s hard work (especially @msarit). I'm not super familiar with the forem -> dev.to pipeline, but I'm pretty sure dev.to articles dont support this yet even though the docs indicate they do. Is that possible? I'm getting errors over there trying to do things like this:
{% embed https://stackblitz.com/edit/intro-example-a?embed=1&file=src/App.vue&hideExplorer=1&hideNavigation=1&view=preview %}
🙏
@justin-schroeder hmm, interesting - that very URL does work for me on dev.to... Could you try to clear your cache and if it's still broken --> report an issue?