script

fun FlowOrMetaDataOrPhrasingContent.script(file: RevisionedFile, crossorigin: ScriptCrossorigin? = null, integrity: Boolean = RevFileHtml.useSubresourceIntegrity, block: SCRIPT.() -> Unit = {})(source)

Adds a <script> tag for the given revisioned file.

Parameters

file

the revisioned file

crossorigin

value for the crossorigin attribute. Default is null.

integrity

whether the integrity attribute should be set. Default can be configured with useSubresourceIntegrity while installing the RevFilePlugin.

block

optional block to further customize the <script> tag