Trellis is a simple and powerful templating engine.
It uses a clean and readable syntax to define templates and inherit from them, allowing for flexible and maintainable content generation.
Trellis is meant for HTML content but can be used as any text generator (Markdown, plain, Gemini's Gemtext, or any other).
Trellis is written in Lua programming language and is shipped as a script.
NOTE: For now, trellis is nothing more than a prototype and I'm also creating it for my own use. This piece of software has no warranty, so use it at YOUR OWN RISK!
Trellis depends only on:
- Lua interpreter/LuaJIT.
- LuaFileSystem package.
To install Lua interpreter, visit the official Lua website.
Install LuaRocks on your machine. Then and run this command to install LuaFileSystem:
$ luarocks install luafilesystemTo use trellis you need to execute the script at the src folder in this repository:
- Windows
> lua src\trellis.lua- Linux/Mac
$ chmod +x src/trellis.lua
$ ./src/trellis.lua # or lua src/trellis.luaRead the manual in this repository to understand how to use Trellis and its capabilities
For a demonstration of how Trellis works, please see the examples folder.