Hypercontent Distribution Language: Difference between revisions
From Amaranth Legacy, available at amaranth-legacy.community
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
||
| Line 59: | Line 59: | ||
[0x2 HEADER] |
[0x2 HEADER] |
||
[0x1 CONTENT] |
[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 PARAG][0x1 ATTR]unordered:.red:.extra-class[0x2 ATTR][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] |
[0x1 LIST][0x1 ATTR]unordered:.red[0x2 ATTR][0x1 COMPCSS DEDUPID=2114012][0x2 COMPCSS]Hi[0x2 LIST] |
||
[0x2 CONTENT] |
[0x2 CONTENT] |
||
</pre> |
</pre> |
||
Revision as of 10:19, April 13, 2025
TIMELINE
This article takes place in the 24 & 26 centuries of Distant Worlds.
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 THCDL (textual HCDL), CSS, and Q-WebAssembly.
Some advantages of HCDL include:
- Lightweight
- Highly optimised
- Reduced request load and page loading time due to preprocessing on the server side
- On-the-fly parsing
- Extreme modularity with numerous libraries
- Native support in 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 ATTR]unordered:.red:.extra-class[0x2 ATTR][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:.red[0x2 ATTR][0x1 COMPCSS DEDUPID=2114012][0x2 COMPCSS]Hi[0x2 LIST] [0x2 CONTENT]