Cherif Bouchelaghem
03/09/2024, 10:06 PMCherif Bouchelaghem
03/10/2024, 1:58 PMhref
should be invoked in the context of the Application or any instance than extends the application like a Resource
this@dashboard.application.apply {
href(Routes.Dashboard)
}
Cherif Bouchelaghem
03/10/2024, 2:01 PMhref(MyResource)
inside the template, how to get the instance of the app or a resource inside the template?Cherif Bouchelaghem
03/10/2024, 2:17 PMclass RootTemplate(private val pageTitle: String, private val app: Application) : Template<HTML> {
...
body("has-navbar-fixed-top") {
app.apply {
a {
href = href(Routes.Dashboard)
}
}
}