Genie Discord forum
![Author Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Currently, I am following the MVC Web tutorial in the Genie documentation and in the section 'Adding the search feature' I want to change the following:
<% if ! isempty(movies) for_each(movies) do movie partial(joinpath(Genie.config.path_resources, "movies", "views", "_movie.jl.html"), movie = movie) end else partial(joinpath(Genie.config.path_resources, "movies", "views", "_no_results.jl.html")) end %>
into code that does not call a file 100 times but instead only once and it should give me a dataframe instead of loose rows. So my main question is:
How do you render a Dataframe in Genie?
I have tried using the HTML and render function of Genie.Render.HTML, but I cannot seem to work it out.
Already big thanks in advance!
![Author Avatar](https://cdn.discordapp.com/avatars/738049963250155580/13375362e7047976b44a466ef441a20f.png?size=512)
how would you like to render the dataframe? as a static table? or as something as a data table with sorting, filtering, pagination, etc?
![Author Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
A data table would be great!
![Author Avatar](https://cdn.discordapp.com/avatars/960642755799941150/8454099b3f43462890d75bc9c4cd572d.png?size=512)
Well then use a DataTable from StippleUI
model.datatable[] = DataTable(df)
ui() = <...code...> table(:datatable) <... more code ...>