Crates.io | i-kdl |
lib.rs | i-kdl |
version | 1.0.0 |
source | src |
created_at | 2021-03-06 12:14:40.511828 |
updated_at | 2021-03-06 12:14:40.511828 |
description | Inline-KDL Embedded Document Language |
homepage | https://github.com/passcod/i-kdl |
repository | https://github.com/passcod/i-kdl |
max_upload_size | |
id | 364761 |
size | 16,644 |
KDL is a document language with xml-like semantics that looks like you're invoking a bunch of CLI commands!
Inline KDL (short: i-kdl, extension: ikdl, pronounced: i cuddle) is an extension of KDL where KDL fragments can be embedded in a larger text document.
i-kdl uses <
and >
to indicate a KDL fragment. An i-kdl document is a list
of zero or more Texts interspersed with zero or more Nodes.
Simple:
Hic voluptatem eum et repudiandae nisi cum qui sed. Voluptatum molestiae recusa
quod<note latin="quī" case="nominative" gender="neuter" number="singular"> quas
suscipit reprehenderit eos commodi. Dolores earum iste tempore culpa ut nostrum.
Can span multiple lines (remembering to use KDL line continuations where appropriate):
Inflection of quī (“who, which”), Proto-Indo-European *kʷod, whence also <etymology \
word="hwæt" \
lang="Old English" \
{
translation {
text "what"
lang "English"
}
}
>.
KDL fragment can contain <>
in strings etc.
i-kdl uses <code "<"> and <code ">"> to indicate a KDL fragment.
You can escape a <
in text with \\
:
Escaping \< is possible: <true>.
The code in this repository is covered by the Parity License, a strong copyleft license. That means that you can only use this project if you're working on an open source-licensed product (MIT/Apache projects are ok!)