Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

LordOfTrident/ltl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

Introduction

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

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.

Quickstart

$ git clone https://github.com/LordOfTrident/ltl
$ cd ltl
$ nimble build
$ ./ltl -h

Documentation

Coming soon.

Bugs

If you find any bugs, please, create an issue and report them.



Nim

Made with ❤️ love

(Back to top)

About

A Lisp-like template language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages