package org.jetbrains.dokka.base.renderers.html.innerTemplating
class DefaultTemplateModelMerger : TemplateModelMerger {
override fun invoke(
factories: List,
buildModel: TemplateModelFactory.() -> TemplateMap
): TemplateMap {
val mapper = mutableMapOf()
factories.map(buildModel).forEach { partialModel ->
partialModel.forEach { (k, v) ->
mapper[k] = v
}
}
return mapper
}
}