Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/passcod/i-kdl
Inline-KDL Embedded Document Language
https://github.com/passcod/i-kdl
Last synced: 19 days ago
JSON representation
Inline-KDL Embedded Document Language
- Host: GitHub
- URL: https://github.com/passcod/i-kdl
- Owner: passcod
- License: other
- Created: 2021-03-06T07:53:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-06T12:13:20.000Z (over 3 years ago)
- Last Synced: 2024-10-05T16:22:24.150Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Inline KDL
[![Crate release version](https://flat.badgen.net/crates/v/i-kdl)](https://crates.io/crates/i-kdl)
[![Crate license: Parity 7.0.0](https://flat.badgen.net/badge/license/Parity%207.0.0)][license]
[![Uses Caretaker Maintainership](https://flat.badgen.net/badge/Caretaker/Maintainership%20👥%20/purple)][caretaker][KDL](https://github.com/kdl-org/kdl) is a document language with xml-like
semantics that looks like you're invoking a bunch of CLI commands![Inline KDL](https://github.com/passcod/i-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.- [API documentation][docs]
- Licensed with [Parity 7.0.0][license]
- Uses [Caretaker Maintainership][caretaker]
- Supported Rust version: latest stable[caretaker]: ./CARETAKERS.md
[docs]: https://docs.rs/i-kdl
[license]: ./LICENSE.md## Examples
Simple:
```ikdl
Hic voluptatem eum et repudiandae nisi cum qui sed. Voluptatum molestiae recusa
quod quas
suscipit reprehenderit eos commodi. Dolores earum iste tempore culpa ut nostrum.
```Can span multiple lines (remembering to use KDL line continuations where appropriate):
```ikdl
Inflection of quī (“who, which”), Proto-Indo-European *kʷod, whence also .
```KDL fragment can contain `<>` in strings etc.
```ikdl
i-kdl usesand
"> to indicate a KDL fragment.
```You can escape a `<` in text with `\\`:
```ikdl
Escaping \< is possible: .
```## License
The code in this repository is covered by [the Parity License](LICENSE.md), 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!)