Polishing
This commit is contained in:
@@ -5,12 +5,12 @@ package org.springframework.web.reactive.result.view.script
|
||||
import kotlin.script.templates.standard.ScriptTemplateWithBindings
|
||||
|
||||
fun ScriptTemplateWithBindings.include(path: String) =
|
||||
(bindings["include"] as (String) -> String).invoke(path)
|
||||
(bindings["include"] as (String) -> String).invoke(path)
|
||||
|
||||
|
||||
fun ScriptTemplateWithBindings.i18n(code: String) =
|
||||
(bindings["i18n"] as (String) -> String).invoke(code)
|
||||
(bindings["i18n"] as (String) -> String).invoke(code)
|
||||
|
||||
var ScriptTemplateWithBindings.foo: String
|
||||
get() = bindings["foo"] as String
|
||||
set(value) { throw UnsupportedOperationException()}
|
||||
get() = bindings["foo"] as String
|
||||
set(value) { throw UnsupportedOperationException()}
|
||||
|
||||
Reference in New Issue
Block a user