News for hackers. Stuff that matters.
Re:New D programming language forum, written entirely in D by hasenj on Wednesday February 15, 2012 @03:19AM (#3593554)
It looks like web.d implements the response handler from scratch, so I doubt there's a framework. Maybe a framework will be extracted from this in the future.

It looks like there isn't even a template language -- it seems to build the html using the plain old string concatenation method.

  html.put(
   `<tr class="thread-post-row`, (post.info && post.id==selectedID ? ` thread-post-focused thread-post-selected` : ``), `">`
  `<td>`
    `<div style="padding-left: `, format("%1.1f", OFFSET_INIT + level * offsetIncrement), OFFSET_UNITS, `">`
      `<div class="thread-post-time">`, summarizeTime(post.time, true), `</div>`,
      `<a class="postlink `, (user.isRead(post.rowid) ? "forum-read" : "forum-unread" ), `" href="`, encodeEntities(idToUrl(post.id)), `">`, truncateString(post.author, 20), `</a>`
    `</div>`
    `</td>`
  `</tr>`);
Re:New D programming language forum, written entirely in D by CyberShadow on Wednesday February 15, 2012 @06:23AM (#3593827)
I plan to move to HTML templates in a future version. It shouldn't affect performance.