i-kdl 1.0.0

Inline-KDL Embedded Document Language
Documentation
  • Coverage
  • 0%
    0 out of 9 items documented0 out of 1 items with examples
  • Size
  • Source code size: 16.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 591.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 23s Average build duration of successful builds.
  • all releases: 23s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • passcod/i-kdl
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • passcod

Inline KDL

Crate release version Crate license: Parity 7.0.0 Uses Caretaker Maintainership

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.

Examples

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>.

License

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!)