I would like to create a LiveView whose template renders the content of a Livebook. I’m pretty new to LiveView and completely new to Livebook.
Assuming that this is possible, can some one give me any relevant pointers on how this might be done?
I would like to create a LiveView whose template renders the content of a Livebook. I’m pretty new to LiveView and completely new to Livebook.
Assuming that this is possible, can some one give me any relevant pointers on how this might be done?
Could you expand on what you mean by “renders the content of a Livebook”? Do you mean that you’d like to be able to render static .livemd
files? Or do you want some kind of “live link” to a running Livebook instance?
Depending on what you’re after here, I’m not sure whether it’s feasible. Livebook is itself a Phoenix LiveView application (and a rather complex one) that uses .livemd
“notebooks” as a sort of persistence layer. Those notebooks are just Markdown, so you can render them with anything that can render Markdown. Somehow “embedding” a running notebook, however, would be a much more complicated task.
Thanks for the response.
As an example, take a look at the Elixir “getting started” documentation at Introduction - The Elixir programming language.
On that page, when you click on a topic on the right hand side of the page, documentation for the topic then appears on the left hand side of the page.
I am planning on creating a Phoenix LiveView web app where I will have a layout with a list of topics on the left hand side of page. When the user clicks on one of the topics, documentation for the topic will appear on the right hand side of the page. I was wondering if this documentation could be in the form of a Livebook.
Sounds like this might not work.