script

fun HEAD.script(uri: String, defer: Boolean = false, async: Boolean = false, type: String = JAVASCRIPT_TYPE, attrs: Map<String, String>? = null)

Generates a <head> script link from the provided handler uri, optionally including the specified attrs.


fun BODY.script(uri: String, defer: Boolean = false, async: Boolean = false, type: String = JAVASCRIPT_TYPE, attrs: Map<String, String>? = null)

Generates a <body> script link from the provided handler uri, optionally including the specified attrs.