doccy 0.3.1

Doccy is a simple brace based markup language.
Documentation

Doccy

Build Status Latest Version Documentation Minimum rustc version License:MIT lines of code

Doccy is a simple brace based markup language, an alternative to writing HTML for people who enjoy the power and flexibility but do not enjoy writing it.

Features:

See the latest documentation for more information about Doccy syntax and provided APIs.

  • Implied paragraphs and line breaks
  • Simple curley brace based element syntax
  • Support for all body HTML elements
  • Command line interface

Examples

Rust

extern crate doccy;

use doccy::doccy_to_html;

fn main() {
    match doccy_to_html("your document {em: here}") {
        // <p>your document <em>here</em></p>
        Ok(html) => println!("{}", html),
        Err(error) => {}
    };
}

Command line

# <p>your document <em>here</em></p>
echo "your document {em: here}" | doccy to-html

Versions

The 0.1 release of Doccy requires Rustc version 1.29 or greater. It has been tested on 1.28, however the dependency on criterion for benchmarking means this crate will not compile.