| |
| Posted by Dejan Lekic in reply to kdevel | PermalinkReply |
|
Dejan Lekic
Posted in reply to kdevel
| After talking to Adam on IRC, he pointed out that i`` works, so I was wrong apparently. The following works:
string title = "D roX";
auto html = i`
<!DOCTYPE html>
<html>
<head>
<title>$(title)</title>
<link rel = "stylesheet" href = "style.css">
</head>
<body>
`;
iq{} does not work because what is inside is not valid D code. i"" would work if you escaped all the double-quotes which obviously you do not want to do, so i`` to the rescue!
|