From: David ‘Bombe’ Roden Date: Fri, 17 May 2019 14:53:24 +0000 (+0200) Subject: 🚧 Add annotation for the template path X-Git-Tag: v79^2~30 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=fc75cb21077352b708d8701708dff8f5c2f2cdde 🚧 Add annotation for the template path --- diff --git a/src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt b/src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt index d3d4bad..0bda133 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt @@ -5,3 +5,7 @@ import net.pterodactylus.util.web.* annotation class MenuName(val value: String) val Page<*>.menuName get() = javaClass.getAnnotation(MenuName::class.java)?.value + +annotation class TemplatePath(val value: String) + +val Page<*>.templatePath get() = javaClass.getAnnotation(TemplatePath::class.java)?.value