Macro polysite::pipe

source ·
macro_rules! pipe {
    ($f:expr, $($n:expr),+ $(,)?) => { ... };
}
Expand description

pipe! macro may used to make large compiler from piping multiple compilers

§Example

This example will read source as Markdown and write HTML to target.

use polysite::{compiler::*, *};
pipe!(
    path::SetExtension::new("html"),
    file::FileReader::new(),
    markdown::MarkdownRenderer::new(None),
    file::FileWriter::new(),
);