mirror of https://github.com/kdl-org/kdl.git
add basic html translation example
This commit is contained in:
parent
aaa7c97cdf
commit
23a419289d
|
|
@ -0,0 +1,47 @@
|
|||
doctype "html"
|
||||
html lang="en" {
|
||||
head {
|
||||
meta charset="utf-8"
|
||||
meta name="viewport" content="width=device-width, initial-scale=1.0"
|
||||
meta \
|
||||
name="description" \
|
||||
content="kdl is a document language, mostly based on SDLang, with xml-like semantics that looks like you're invoking a bunch of CLI commands!"
|
||||
title "kdl - Kat's Document Language"
|
||||
link rel="stylesheet" href="/styles/global.css"
|
||||
}
|
||||
body {
|
||||
main {
|
||||
header class="py-10 bg-gray-300" {
|
||||
h1 class="text-4xl text-center" "kdl - Kat's Document Language"
|
||||
}
|
||||
section class="kdl-section" id="description" {
|
||||
p {
|
||||
text "kdl is a document language, mostly based on "
|
||||
a href="https://sdlang.org" "SDLang"
|
||||
text " with xml-like semantics that looks like you're invoking a bunch of CLI commands"
|
||||
}
|
||||
p "It's meant to be used both as a serialization format and a configuration language, and is relatively light on syntax compared to XML."
|
||||
}
|
||||
section class="kdl-section" id="design-and-discussion" {
|
||||
h2 "Design and Discussion"
|
||||
p {
|
||||
text "kdl is still extremely new, and discussion about the format should happen over on the "
|
||||
a href="https://github.com/kdoclang/kdl/discussions" {
|
||||
text "discussions"
|
||||
}
|
||||
text " page in the Github repo. Feel free to jump in and give us your 2 cents!"
|
||||
}
|
||||
}
|
||||
section class="kdl-section" id="design-principles" {
|
||||
h2 "Design Principles"
|
||||
ol {
|
||||
li "Maintainability"
|
||||
li "Flexibility"
|
||||
li "Cognitive simplicity and Learnability"
|
||||
li "Ease of de/serialization"
|
||||
li "Ease of implementation"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue