Package-level declarations

Functions

Link copied to clipboard
fun OutputPath.html(source: Path): <Error class: unknown class>

Copy an untemplated HTML file from the source to the destination.

Link copied to clipboard
fun OutputPath.ktHtml(source: Path, context: Map<String, Any?> = emptyMap(), includes: List<Path> = this.includes): <Error class: unknown class>

Template the source file using the <?kt ... ?> syntax. For example,

Link copied to clipboard
fun ktMdTemplate(source: Path, contentKey: String = "content", context: Map<String, Any?> = emptyMap(), includes: List<Path> = emptyList()): (html: String) -> String

Template the source like ktHtml, but it returns a function you can then call with a string to be used as a template. For example, you could do

Link copied to clipboard
fun OutputPath.ktMdTemplate(source: Path, contentKey: String = "content", context: Map<String, Any?> = emptyMap()): (html: String) -> String
Link copied to clipboard
fun ktTemplate(source: Path, context: Map<String, Any?> = emptyMap(), includes: List<Path> = emptyList()): String

Immediately template the file at source.

Link copied to clipboard
fun OutputPath.ktTemplate(source: Path, context: Map<String, Any?> = emptyMap()): String