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

changeset 207
479dd7993ef9
parent 205
7725a79416f3
child 209
c9c6abf167c7
equal deleted inserted replaced
206:fe4de34822a5 207:479dd7993ef9
58 } 58 }
59 59
60 /** 60 /**
61 * The name of the content page. 61 * The name of the content page.
62 * 62 *
63 * @see Constants#REQ_ATTR_CONTENT_PAGE 63 * @see Constants#REQ_ATTR_PAGE_TITLE
64 */ 64 */
65 var pageTitle = "" 65 var pageTitle = ""
66 set(value) { 66 set(value) {
67 field = value 67 field = value
68 request.setAttribute(Constants.REQ_ATTR_PAGE_TITLE, value) 68 request.setAttribute(Constants.REQ_ATTR_PAGE_TITLE, value)
76 var styleSheets = emptyList<String>() 76 var styleSheets = emptyList<String>()
77 set(value) { 77 set(value) {
78 field = value 78 field = value
79 request.setAttribute(Constants.REQ_ATTR_STYLESHEET, 79 request.setAttribute(Constants.REQ_ATTR_STYLESHEET,
80 value.map { it.withExt(".css") } 80 value.map { it.withExt(".css") }
81 )
82 }
83
84 /**
85 * A list of additional style sheets.
86 *
87 * @see Constants#REQ_ATTR_JAVASCRIPT
88 */
89 var javascript = ""
90 set(value) {
91 field = value
92 request.setAttribute(Constants.REQ_ATTR_JAVASCRIPT,
93 value.withExt(".js")
81 ) 94 )
82 } 95 }
83 96
84 /** 97 /**
85 * The name of the navigation menu JSP. 98 * The name of the navigation menu JSP.

mercurial