Text hosting site like Pastebin, powered by a TwineMedia server
https://txt.termer.net
- Nim 95.5%
- CSS 2.6%
- Dockerfile 1.2%
- Shell 0.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| static | ||
| templates | ||
| .gitignore | ||
| build-and-publish.sh | ||
| build.sh | ||
| config.nims | ||
| Dockerfile | ||
| LICENSE | ||
| pages.example.json | ||
| README.md | ||
| txt.nimble | ||
txt
Text hosting site like Pastebin, powered by a TwineMedia server
Compile
Run nimble build -d:release and it will be compiled as a binary named txt.
User-defined pages
To define pages, you need to copy pages.example.json to pages.json and modify the file.
The keys in the file are the paths that the pages will be accessible at, and the file property is the filename of the template inside of the pages directory. You must create pages yourself.
Templates are compiled using Nimja, and typically use .nwt as their extension.
Page templates are compiled into procs and are included in the binary, so you need to recompile the software after making changes to them.