mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Move file.
This commit is contained in:
parent
f3a352cf74
commit
f5b1bcc6b5
2 changed files with 2 additions and 2 deletions
|
@ -1,19 +0,0 @@
|
|||
package com.beust.kobalt.internal
|
||||
|
||||
import com.github.mustachejava.DefaultMustacheFactory
|
||||
import java.io.*
|
||||
|
||||
class Mustache {
|
||||
companion object {
|
||||
fun generateFile(mustacheIns: InputStream, createdFile: File, map: Map<String, Any>) {
|
||||
val sw = StringWriter()
|
||||
val pw = PrintWriter(sw)
|
||||
var mf = DefaultMustacheFactory()
|
||||
mf.compile(InputStreamReader(mustacheIns), "kobalt").execute(pw, map).flush()
|
||||
with(createdFile) {
|
||||
parentFile.mkdirs()
|
||||
writeText(sw.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue