Table of contents
LTL is a Lisp-like language written in Nim for templating and text automation. Example usage could be a static HTML site, where you can utilize LTL to reuse a header across multiple pages, or automatically generate a navigation bar given a list of pages.
Example file examples/count-to-10.ltl:
I'm gonna count from 1 to 10:
$(join `\n` (for n 1 10 1 `Counting: $(int $n)`))
Finished!
Now, if we run the file, we get the following output:
$ ltl -f examples/count-to-10.ltl
I'm gonna count from 1 to 10:
Counting: 1
Counting: 2
Counting: 3
Counting: 4
Counting: 5
Counting: 6
Counting: 7
Counting: 8
Counting: 9
Counting: 10
Finished!
See more examples in the examples folder.
$ git clone https://github.com/LordOfTrident/ltl
$ cd ltl
$ nimble build
$ ./ltl -h
Coming soon.
If you find any bugs, please, create an issue and report them.
