vibed-webchat/views/room.dt
Jonathan Harker 04d90b7c7a Test vibe.d initial commit.
- Now ready for tutorial section: "Incremental updates"
2016-02-05 16:07:25 +13:00

18 lines
537 B
Text

doctype html
html
head
title #{room} - Webchat
style.
textarea, input { width: 100%; }
textarea { resize: vertical; }
body
h1 Room '#{room}'
textarea#history(rows=20, readonly=true)
- foreach (m; messages)
|= m
form(action="room", method="POST")
input(type="hidden", name="room", value=room)
input(type="hidden", name="nick", value=nick)
input#inputLine(type="text", name="message", autofocus=true)