🚧 Add annotation for the template path
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 17 May 2019 14:53:24 +0000 (16:53 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 17 May 2019 15:01:23 +0000 (17:01 +0200)
src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt

index d3d4bad..0bda133 100644 (file)
@@ -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