Crates.io | ley |
lib.rs | ley |
version | 0.0.5 |
source | src |
created_at | 2020-10-07 03:57:27.688821 |
updated_at | 2020-10-08 07:39:18.797491 |
description | Parser and html renderer of Ley files |
homepage | |
repository | https://github.com/AidoP/ley |
max_upload_size | |
id | 296814 |
size | 29,383 |
Ley is a markup language designed to let you focus on functionality rather than layout.
Ley files are made up of ley lines
which describe functionality. A ley line is of the format
!name: type {
contents
}
where:
name
describes a short piece of text for the ley line, such as a heading or link uritype
describes the functionality itself, ie. a section of text, a link or an imagecontents
describes further ley linesAdditionally, a ley line may be replaced by direct text.
No whitespace is preserved.
When double quotes ("
) are used, all text within is escaped. Two double quotes (""
) may be used to the same effect, preserving the outer quotes and allowing the usage of single quotes within.
link
a link to other content, an html anchor
name
the urlcontents
the content to anchorimage
an image
name
the image location urlcontents
the image alt textsection
a section of text
name
the heading of the sectioncontents
the nested contents