diff options
author | Marvin Borner | 2019-04-17 23:06:53 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-17 23:06:53 +0200 |
commit | 53be132a05d8f7ac9c5366710a3f66670ea0ad39 (patch) | |
tree | 9414912f523fa9a9bf994920f1460db30494fb3d | |
parent | ff8f11091a530358ef600eedf00c21e90efe62d3 (diff) |
Removed non-working hot reloading of templates
Co-authored-by: LarsVomMars <lars@kroenner.eu>
-rw-r--r-- | build.gradle | 2 | ||||
-rw-r--r-- | src/main/kotlin/App.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle index 1cab197..ca7fc76 100644 --- a/build.gradle +++ b/build.gradle @@ -26,7 +26,7 @@ repositories { rocker { main { - optimize = false + optimize = true templateDir = file('src/main/resources/views') outputDir = file('src/main/resources/generated-views') classDir = file('src/main/resources/compiled-views') diff --git a/src/main/kotlin/App.kt b/src/main/kotlin/App.kt index bb69db2..37c7f11 100644 --- a/src/main/kotlin/App.kt +++ b/src/main/kotlin/App.kt @@ -24,7 +24,7 @@ fun main() { .start(7000) // Set up templating - RockerRuntime.getInstance().isReloading = true + RockerRuntime.getInstance().isReloading = false JavalinRenderer.register( FileRenderer { filepath, model -> Rocker.template(filepath).bind(model).render().toString() }, ".rocker.html" ) |