Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auto buildPage() {
- auto doc = new Html();
- with (doc) {
- with (head) {
- title("das title");
- link[$.rel = "foobar", $.type = "text/css"];
- }
- with (body_)
- with(div[$.class_ = "mainDiv"])
- with (ul)
- foreach(i; 0 .. 5)
- with (li[$.id = i, $.class_ = "listItem"]) {
- text("I am bulletpoint #");
- text(i);
- }
- }
- return doc.render();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement