Open
Description
I am adding a link to a site that - upon me - explains LiveView very nicely.
The best I've seen so far. Worth reading and keeping.
https://adopt-liveview.lubien.dev/
For example, it explains clearly how to use these "slots" in functional components.
The GitHub repo shows also how to:
- add sitemaps (with :sitemapper,
- add SEO friendly metadata
https://github.com/adopt-liveview/adopt-liveview/blob/ccc2beb337f7aabf8a992928117ca23fb7512c9f/lib/curso_web/components/core_components.ex#L1358 and
https://github.com/adopt-liveview/adopt-liveview/blob/ccc2beb337f7aabf8a992928117ca23fb7512c9f/lib/curso_web/components/layouts/root.html.heex#L53
Maybe only missing "advanced" concepts like streams and async assigns.
For the async assigns with slots, I recommend to check this repo.
It is a companion to this video: https://www.youtube.com/watch?v=FF9lSxeQkwA
In this video, we does a simple async task is to generate a typst file from your data and render it. It is a nice printable document that you can download and print.
Metadata
Assignees
Labels
No labels