utkarshkukreti / markup.rs

A blazing fast, type-safe template engine for Rust.
Apache License 2.0
363 stars 15 forks source link

Can not add attributes to definitions #8

Closed L-as closed 4 years ago

L-as commented 4 years ago

E.g. this is not allowed:

markup::define! {
    #[derive(Clone)]
    MyMarkup {
        "hi"
    }
}

I think this affects documentation comments too.

utkarshkukreti commented 4 years ago

@L-as I've not needed this yet, but it was a simple change so I added it. Check this out. Let me know if anything doesn't work.