-class IndexPage @Inject constructor(template: Template, webInterface: WebInterface, private val postVisibilityFilter: PostVisibilityFilter) :
- LoggedInPage("index.html", template, "Page.Index.Title", webInterface) {
+@TemplatePath("/templates/index.html")
+@ToadletPath("index.html")
+class IndexPage @Inject constructor(webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer, private val postVisibilityFilter: PostVisibilityFilter) :
+ LoggedInPage("Page.Index.Title", webInterface, loaders, templateRenderer) {