Skip to content

Commit

Permalink
fix: Need render to be public used in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk committed Nov 15, 2023
1 parent 30114ad commit a056344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/no/nav/pdfgen/core/pdf/CreateHtml.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a056344

Please sign in to comment.