src/main/kotlin/de/uapcore/lightpit/RequestMapping.kt

changeset 207
479dd7993ef9
parent 205
7725a79416f3
child 209
c9c6abf167c7
--- a/src/main/kotlin/de/uapcore/lightpit/RequestMapping.kt	Mon Aug 02 15:13:04 2021 +0200
+++ b/src/main/kotlin/de/uapcore/lightpit/RequestMapping.kt	Mon Aug 02 17:04:17 2021 +0200
@@ -60,7 +60,7 @@
     /**
      * The name of the content page.
      *
-     * @see Constants#REQ_ATTR_CONTENT_PAGE
+     * @see Constants#REQ_ATTR_PAGE_TITLE
      */
     var pageTitle = ""
         set(value) {
@@ -82,6 +82,19 @@
         }
 
     /**
+     * A list of additional style sheets.
+     *
+     * @see Constants#REQ_ATTR_JAVASCRIPT
+     */
+    var javascript = ""
+        set(value) {
+            field = value
+            request.setAttribute(Constants.REQ_ATTR_JAVASCRIPT,
+                value.withExt(".js")
+            )
+        }
+
+    /**
      * The name of the navigation menu JSP.
      *
      * @see Constants#REQ_ATTR_NAVIGATION

mercurial