Rimpiazza

The simple procedural macro to replace keywords from a string.

Example

Standard replacing:
rs println!( "{}", replace!("I like Gelato", "Gelato" => "ice cream, a lot!", "like" => "hate") ); Replace contents from a file:
rs println!( "{}", replace!(:"./gelato.txt", "Gelato" => "ice cream, a lot!", "like" => "hate") // Notice the : character );

That's it, it does not have any more fancy features.

Use cases

I created this because Internet Explorer 11 has no support for css variables, with this macro, I can add them to my css from my rust backend. Previously I just used a function, but this is much more fast as it is compile-time.

Is this still being worked on?

This is such a simple thing it does not need much support.
If I find a bug I will fix it, but it's a very small macro and does not need a lot of development.