- Rust 97.7%
- Nix 1.9%
- Just 0.4%
| src | Fix building (again) | |
| teacat_lib |
Remove = Header = syntax
|
|
| testfiles | single-quotes for attribute strings | |
| .gitignore | Rename "run" to "serve" | |
| Cargo.lock | Update Version | |
| Cargo.toml | Update Version | |
| flake.lock | Attempt to add flake | |
| flake.nix | Update flake | |
| justfile | Raw Tags | |
| license.md | Initial Commit! | |
| logo.svg | Add logo.svg | |
| readme.md | PNG logo was unnecessary | |
| rustfmt.toml | Markup | |
| test.tc |
@with initial implementation
|
|
TeaCat is a modern document language for web pages, designed to be easier to read and write than standard HTML.
Take the following HTML:
<!-- Simple website -->
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>My Website</h1>
<p>Hello and welcome to my website!</p>
</body>
</html>
With TeaCat, you can instead write it like this instead:
# simple website
:head [
:title My Website
]
:body [
:h1 My Website
:p Hello and welcome to my website!
]
Features
TeaCat is currently in very early alpha. Everything is subject to change.
Here are some of the planned features:
- Syntax
- Tags and attributes
- Comments
- Raw tags
- Markup
- Templating
- Variables
- Functions
- Modules and imports
- Standard library
- Tooling
- A build system
- A serve command, with hot-reloading
- Formatting tools
- Syntax highlighting
FAQ
Q: Why create another language?
A: I often find myself frustrated by HTML's syntax, which is difficult to read and write due to its unnecessary verbosity.
Q: Where did the name "TeaCat" come from?
A: The language was originally named "Template Cat" as it is meant to be a templating language and I like cats. This was shortened to "TCat", which naturally turned into "TeaCat" over time.
Q: Are JS bindings available?
A: Currently, there are no official JS bindings for TeaCat. However, if this is requested enough, this may change in the future!
Can I use TeaCat in my projects?
A: TeaCat is still early in development, and there are no guarantees of stability as of now. However, if you want to use it, feel free to do so!
On LLMs and AI
TeaCat has a zero-AI policy in all official spaces. This includes (but is not limited to) code, issues, and pull requests. Attempts to circumvent this policy will result in a ban.
Exceptions may be provided for using translation tools in conversations. If you do, we recommend attaching the original text written in your native language, alongside the translated version. Use dedicated translation tools, rather than chatbots.