aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorJosef Pospíšil <josef.pospisil@laststar.eu>2021-01-21 19:44:17 +0100
committerJosef Pospíšil <josef.pospisil@laststar.eu>2021-01-21 19:44:17 +0100
commit5ce9f1513f919bd347bc4b4cf94c041304f7a80e (patch)
tree2a305b64233cb938bfe925fe02133d8b8b88c7e5 /README.md
parentAdd temple (diff)
Add the temple example to README
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index c469e5b..fa61723 100644
--- a/README.md
+++ b/README.md
@@ -182,7 +182,7 @@ arguments to `argparse`.
Run `(doc argparse/argparse)` after importing for more information.
-# Temple
+## Temple
HTML templates for Janet.
@@ -195,9 +195,9 @@ substitution, so temple can be used for formats besides HTML.
Also exposes the `escape` function inside templates for HTML escaping
if you want to manually print to template output.
-## Example
+### Example
-### foo.temple
+#### foo.temple
```
{$ (def n 20) # Run at template compile time $}
@@ -222,6 +222,9 @@ if you want to manually print to template output.
(foo/render :a "hello")
```
+There is one more involved example in the (/janet-lang/spork/examples/temple/). You
+can runnit with `janet examples/temple/example.janet`.
+
## Test
This module contains a simple test helper when you do not need a specialized