diff options
| author | 2021-01-21 19:44:17 +0100 | |
|---|---|---|
| committer | 2021-01-21 19:44:17 +0100 | |
| commit | 5ce9f1513f919bd347bc4b4cf94c041304f7a80e (patch) | |
| tree | 2a305b64233cb938bfe925fe02133d8b8b88c7e5 /README.md | |
| parent | Add temple (diff) | |
Add the temple example to README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |
