Genie Discord forum
In the new framework, how do I set the title of the web page? (e.g.
<title>Something</title>)? Do I need to specify a layout? Is there way to simply set the title of the page? I do have multiple routes and each should have a different title.
I see that
Stipple.Layout.page has an optional
title argument, but with the new framework, I never call this function (the page is already set up for the UI file).
you can do
@page("/path", "view", Stipple.DEFAULT_LAYOUT("your page title")) (not tested, lmk if it works - if it doesn't, use
or ofc you can pass a totally custom layout
Thanks! The latter call worked, but I needed to explicitly name the
title argument. For example,
@page("/projects", "projects.ui.jl", Stipple.ReactiveTools.DEFAULT_LAYOUT(title="WR Project"))
ah yes, that's right 👍