From fc75cb21077352b708d8701708dff8f5c2f2cdde Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 17 May 2019 16:53:24 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=9A=A7=20Add=20annotation=20for=20the=20te?= =?utf8?q?mplate=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.7.4