importMap

fun FlowOrMetaDataOrPhrasingContent.importMap(importMap: ImportMap)(source)

Adds a <script type="importmap"> tag for the given ImportMap.

Read more on import maps.

Parameters

importMap

the script's content


fun FlowOrMetaDataOrPhrasingContent.importMap(vararg files: RevisionedFile, integrity: Boolean = RevFileHtml.useSubresourceIntegrity)(source)

Adds a <script type="importmap"> tag for the given revisioned files.

Read more on import maps.

Parameters

files

revisioned files to include in the import map

integrity

whether to generate the integrity metadata map or not