blob: 7d5487217f2baf629de3ea561c12da546833264a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package org.jetbrains.dokka.base.renderers.html.innerTemplating
class DefaultTemplateModelMerger : TemplateModelMerger {
override fun invoke(
factories: List<TemplateModelFactory>,
buildModel: TemplateModelFactory.() -> TemplateMap
): TemplateMap {
val mapper = mutableMapOf<String, Any?>()
factories.map(buildModel).forEach { partialModel ->
partialModel.forEach { (k, v) ->
mapper[k] = v
}
}
return mapper
}
}
|