aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/templating/ImmediateHtmlCommandConsumer.kt
blob: f17354903297bb9e4fec4c7f8092ecc2b4042291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

package org.jetbrains.dokka.base.templating

import org.jetbrains.dokka.base.renderers.html.TemplateBlock
import org.jetbrains.dokka.base.renderers.html.command.consumers.ImmediateResolutionTagConsumer

public interface ImmediateHtmlCommandConsumer {
    public fun canProcess(command: Command): Boolean

    public fun <R> processCommand(command: Command, block: TemplateBlock, tagConsumer: ImmediateResolutionTagConsumer<R>)

    public fun <R> processCommandAndFinalize(command: Command, block: TemplateBlock, tagConsumer: ImmediateResolutionTagConsumer<R>): R
}