From a05634459d863a602d1990e20d276eef6b729e95 Mon Sep 17 00:00:00 2001 From: Joakim Taule Kartveit Date: Wed, 15 Nov 2023 09:47:03 +0100 Subject: [PATCH] fix: Need render to be public used in unit tests --- src/main/kotlin/no/nav/pdfgen/core/pdf/CreateHtml.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/no/nav/pdfgen/core/pdf/CreateHtml.kt b/src/main/kotlin/no/nav/pdfgen/core/pdf/CreateHtml.kt index 90c755a..881c1e6 100644 --- a/src/main/kotlin/no/nav/pdfgen/core/pdf/CreateHtml.kt +++ b/src/main/kotlin/no/nav/pdfgen/core/pdf/CreateHtml.kt @@ -25,7 +25,7 @@ fun createHtmlFromTemplateData(template: String, directoryName: String): String? return render(directoryName, template, jsonNode) } -private fun render(directoryName: String, template: String, jsonNode: JsonNode): String? { +fun render(directoryName: String, template: String, jsonNode: JsonNode): String? { return HANDLEBARS_RENDERING_SUMMARY.startTimer() .use { loadTemplates()[directoryName to template]?.apply(