--- 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