TIMELINE
This article takes place in the 24 & 26 centuries of Distant Worlds.
Note to Community 📝
This hatnote indicates this page is free to be contributed by the community in any way without any restrictions from scope author.Article contributors: tesinormed
HCDL (MIME type: text/hcdl), also known as the Hypercontent Distribution Language, is the standard binary language used in Web communications to end users. It is normally assembled on the server side using textual HCDL, CSS, and Q-WebAssembly.
Advantages include:
- Lightweight
- Highly optimised
- Reduced request load and page loading time due to preprocessing on the server side
- On-the-fly parsing and partial content transfer
- Extreme modularity with numerous libraries
- Native for Q-Language written Web browsers
Language
Example
HCDL
meta>
title>Example Title;
<
header>
header-l1>Title;
<
content>
parag>attr>.red:.extra-class;HLLO
EXTRA TEXT;
list>attr>unordered:.red;
list-entry>whatever bold>text;;
<
.red {
color: red;
}
.extra-class {
text-align: center;
}
fun onLoad() {
Hcdl.selectElement(".extra-class").outer = parag {
+"hello"
}
}
The previous section would compile to:
HCDL [0x1 META] [0x1 TITLE]Title[0x2 TITLE] [0x1 SCRIPT](Q-WebAssembly)[0x2 SCRIPT] [0x2 META] [0x1 HEADER] [0x1 HEADER-L1]Title[0x2 HEADER-L1] [0x2 HEADER] [0x1 CONTENT] [0x1 PARAG][0x1 COMPCSS DEDUPID=2114012]color:red[0x2 COMPCSS][0x1 COMPCSS DEDUPID=2941024]text-align:center[0x2 COMPCSS]Hi[0x2 PARAG] [0x1 LIST][0x1 ATTR]unordered[0x2 ATTR][0x1 COMPCSS DEDUPID=2114012][0x2 COMPCSS]Hi[0x2 LIST] [0x2 CONTENT]