Hello everyone, is there a way to have multiple en...
# fritz2
p
Hello everyone, is there a way to have multiple entry points in a single fritz2 gradle module? (we’re adding fritz2 screens to an existing SSR app so it’s not a single-page app).
j
This not really a gradle/fritz2 thing. It all compiles to js which can be included on whichever page you include it on. In your kotlin-js main function, you can render to one or more dom elements in your html.
p
is there a way to have a single fritz2 gradle module produce more than one kotlin-js main function? (compilation seems to get slower when we add more gradle modules)
j
not really; I think you are thinking about this wrong. If you want your application to do different things when it hits the main function, just add a when to your main and do some routing based on what the url looks like. Or just use the fritz2 routing ... that's what it's for. Fritz2 is a of course a SPA framework, so using it with a server sider rendering app is not the most logical thing to do.