| Crates.io | teacat |
| lib.rs | teacat |
| version | 0.1.1 |
| created_at | 2025-05-31 22:03:18.675715+00 |
| updated_at | 2025-05-31 22:12:57.205814+00 |
| description | A modern and powerful templating language |
| homepage | |
| repository | https://github.com/Ultrasquid9/TeaCat |
| max_upload_size | |
| id | 1696687 |
| size | 23,079 |
HTML is a pain to write. It's wordy, messy, and generally not something you want to be doing yourself. TeaCat is designed to solve this.
For example, take the following HTML:
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<p>Welcome to my website.</p>
</body>
</html>
TeaCat allows you to instead write it like this:
&hello_world := Hello World!;
:head[
:title[&hello_world]
]
:body[
:h1[&hello_world]
:p[Welcome to my website.]
]
The following TeaCat code can then be instantly transpiled into HTML entirely offline, no JS or webserver required.
I wanted to create a website, but was frustrated by the how difficult to read and write HTML was. While similar languages exist, I have been wanting to try creating my own language for a long time now, and thought that this was a good excuse to try.
Nope! TeaCat is used entirely offline.
Currently, there is no official way to dynamically convert TeaCat into HTML. However, if this is requested enough, this may change in the future!
The language was initially named "WebCat", as I intended to use it to create a website, and I like cats. However, the name was already taken on crates.io, and there are many projects on Github already named WebCat. I cosidered "Template Cat", but shortened that down to "TCat", and that naturally turned into "TeaCat" over time.
Currently, TeaCat is still a work in progress, and there are no guarantees of stability as of now. However, if you want to use it, feel free to do so!