rustyle 0.1.0

A new way to represent the CSS stylesheet in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(proc_macro_hygiene)]
use rustyle::{css_use, rustyle};

fn main() {
  #[css_use]
  let red = "gray";

  let test = rustyle! {
    background-color: #00cccc;
    #[allow(VendorPrefix)]
    -moz-user-select: none;
    background-color: ${red};
  };

  println!("{}", test);
}