Actually I like this !!
It would solve any need without losing readability:
html!r#"
<html>
<title>Hello world</title>
</html>
"#;
css!r#"
body {
margin: 0;
}
"#;
javascript!r#"
function alert_later(v) {
setTimeout(function() { alert(v) }
}
"#;
python!r#"
class MyClass:
def init(self):
pass
"#;
cpp!r#"
class MyClass {
public:
MyClass () = default;
// ... some other stuffs
};
"#;
But it would be nice to delegate it to procedure macro 'cause the logic under this macro could not be trivial ...