dalet/README.md

120 lines
2.2 KiB
Markdown
Raw Normal View History

2024-07-22 19:43:20 +03:00
<div align="center">
2024-07-23 19:00:02 +03:00
![Dalet](https://github.com/TxtDot/.github/blob/main/imgs/dalet.png?raw=true)
2024-07-22 19:43:20 +03:00
# Dalet
2024-07-22 19:43:20 +03:00
</div>
Markup language ecosystem сombining small file size, big number of possibilities for describing the interface and readability.
2024-07-22 20:58:07 +03:00
[Specification](./specification/main.md).
2024-07-22 20:58:07 +03:00
2024-07-23 12:45:41 +03:00
> [!WARNING]
> Specification is not complete.
2024-07-22 20:58:07 +03:00
## Concept
2024-07-23 19:00:02 +03:00
This is Daleth (high level language that compiles to Daletl).
2024-07-22 20:58:07 +03:00
```yaml
# tag: body
# each line is a new tag (if not {}, () is used)
2024-07-23 17:39:24 +03:00
# body text always trimmed
h[1]: TxtDot revolution
2024-07-22 20:58:07 +03:00
p: TxtDot is a cool project
# If no tag is specified, then the 'element' tag, the most primitive tag, is placed
(
Check Dalet too
This is one paragraph
)
This is another paragraph
# [ ] for argument
row[center]: {
link[https://github.com/txtdot/txtdot]: Homepage
btn[https://example.com/donate]: {
# tag without body
img[https://example.com/donate.png]
Donate
}
}
2024-07-22 20:58:07 +03:00
# {} for multiple objects
row: {
{
h[2]: Features
2024-07-22 20:58:07 +03:00
ul: {
Server-side page simplification
Media proxy
Image compression with Sharp
Rendering client-side apps (Vanilla, React, Vue, etc) with webder
Search with SearXNG
Handy API endpoints
No client JavaScript
Some kind of Material Design 3
Customization with plugins, see @txtdot/sdk and @txtdot/plugins
}
}
{
h[2]: Running
2024-07-22 20:58:07 +03:00
{
h[3]: Dev
2024-07-22 20:58:07 +03:00
# () for multiline strings, indent is automatically trimmed
code: (
npm install
npm run dev
)
# (~n Text) n is number of minimum spaces
code[markdown]: (~4
this is codeblock
)
# (# Text) Text after "(# " not modified
code[markdown]: (# this is codeblock)
2024-07-22 20:58:07 +03:00
}
{
h[3]: Production
2024-07-22 20:58:07 +03:00
2024-07-22 21:08:37 +03:00
code: (
2024-07-22 20:58:07 +03:00
npm install
npm run build
npm run start
2024-07-22 21:08:37 +03:00
)
2024-07-22 20:58:07 +03:00
}
{
h[3]: Docker
2024-07-22 20:58:07 +03:00
code: docker compose up -d
}
}
}
2024-07-23 17:39:24 +03:00
2024-07-23 18:10:13 +03:00
# "|" is delimeter for text without tags.
# Element | Description == tcol: {
2024-07-23 17:39:24 +03:00
# Element
# Description
# }
table: {
Element | Description
h | Heading
p | Paragraph
img | Image
link | Link
btn | Button
ul | Unordered list
br | Line break
}
2024-07-22 20:58:07 +03:00
```