Macro rtml::source

source ·
macro_rules! source {
    () => { ... };
    ( .$attr_left:ident = $value_left:expr $(,.$attr:ident = $value:expr)*) => { ... };
}
Expand description

Example

use rtml::*;

assert_eq!(
    source![.src="audio.ogg", .type="audio/ogg"].render(),
    "<source src=\"audio.ogg\" type=\"audio/ogg\">"
);