X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpage%2FAnnotations.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpage%2FAnnotations.kt;h=8287130f2e46a53778e6030e7b214e7d84dafa74;hp=0000000000000000000000000000000000000000;hb=03cec6a6772c2d836d94864adddaf544cbe9d72f;hpb=6f1f26e3998cfef155b0cf59152827accea70d30 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt b/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt new file mode 100644 index 0000000..8287130 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt @@ -0,0 +1,15 @@ +package net.pterodactylus.sone.web.page + +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 + +annotation class ToadletPath(val value: String) + +val Page<*>.toadletPath get() = javaClass.getAnnotation(ToadletPath::class.java)?.value