aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/renderers/OutputWriter.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/renderers/OutputWriter.kt')
-rw-r--r--core/src/main/kotlin/renderers/OutputWriter.kt10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/src/main/kotlin/renderers/OutputWriter.kt b/core/src/main/kotlin/renderers/OutputWriter.kt
index 8ef7e8b2..b2059aa3 100644
--- a/core/src/main/kotlin/renderers/OutputWriter.kt
+++ b/core/src/main/kotlin/renderers/OutputWriter.kt
@@ -1,7 +1,15 @@
package org.jetbrains.dokka.renderers
-interface OutputWriter{
+import org.jetbrains.dokka.CoreExtensions
+import org.jetbrains.dokka.plugability.DokkaContext
+import org.jetbrains.dokka.plugability.single
+
+interface OutputWriter {
+
+ val context: DokkaContext
val extension: String
+ get() = context.single(CoreExtensions.fileExtension)
+
fun write(path: String, text: String, ext: String = extension)
fun writeResources(pathFrom: String, pathTo: String)
} \ No newline at end of file