Removing anything related to JSON from the HTML layer, using natural freemarker's W3C DOM processing capabilities
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8 <h1>Quoridor Community Server</h1>
10 <#list doc.gameIds.* as g>
12 ${g.@white} vs. ${g.@black} <a href="games/${g.@id}/">board</a>
16 <form action="games/create">
17 White: <input type="text" name="white" value="" />
18 Black: <input type="text" name="black" value="" />
19 <input type="submit" value="Create!" />