diff --git a/example/app.nim b/example/app.nim new file mode 100644 index 0000000..e6f1d7d --- /dev/null +++ b/example/app.nim @@ -0,0 +1,16 @@ +import ../src/tim +import std/os + +var + engine = newTim( + src = "templates", + output = "storage", + basepath = currentSourcePath(), + minify = true, + indent = 2 + ) + +engine.precompile() +sleep(40) +let x = engine.render("index") +writeFile(getCurrentDir() / "example" / "preview.html", x) \ No newline at end of file diff --git a/example/preview.html b/example/preview.html new file mode 100644 index 0000000..41cbbe7 --- /dev/null +++ b/example/preview.html @@ -0,0 +1,49 @@ + + +
+ + +Build sleek, dynamic websites and apps in a breeze with Tim Engine's intuitive syntax and powerful features. It's the template engine that keeps up with your creativity.
+Made by Humans from OpenPeeps
+Open Source | LGPLv3 License
+