freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt
author Jaroslav Tulach <jtulach@netbeans.org>
Mon, 31 Aug 2009 22:44:47 +0200
changeset 54 f041b6570ff9
parent 49 75074e02f345
child 56 7c3794f5baa1
permissions -rw-r--r--
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">
     2 <html>
     3   <head>
     4     <title></title>
     5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     6   </head>
     7   <body>
     8       <h1>Quoridor Community Server</h1>
     9       <ol>
    10       <#list doc.gameIds.* as g>
    11         <li>
    12             ${g.@white} vs. ${g.@black} <a href="games/${g.@id}/">board</a>
    13         </li>
    14       </#list>
    15       </ol>
    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!" />
    20       </form>
    21   </body>
    22 </html>