Macro ts

Source
macro_rules! ts {
    () => { ... };
    ($e:expr) => { ... };
    ($($arg:tt)*) => { ... };
}
Expand description

ts! is to expand any inner tiles and to trim the white spaces around the block of text and return a String

use rtile::prelude::*;
tp!(tile_one, "   one hundred   ");
tp!(tile_two, "   two   ");
let result = ts!("
                @{tile_one}
                @{tile_two}
                ");
assert_eq!(result, "one hundred\ntwo");

let result = ts!("
                    @{tile_one}
                    @{tile_two}    ");
assert_eq!(result, "one hundred\ntwo");