]> Pileus Git - ~andy/ct/blobdiff - example/html.ct
Add C/Bison/Lex ct parser
[~andy/ct] / example / html.ct
index e38344fe152a3c75c437f730d8a0bbe58977e072..d08df11c5cb526ab27c5093be231cd82465b2565 100644 (file)
@@ -1,16 +1,16 @@
-[void header() {]
+<% void header() { %>
 Content-Type: application/xhtml+xml; charset=UTF-8
-[}]
+<% } %>
 
-[void body() {]
-       [for (int i = 0; i < 3; i++)]
+<% void body() { %>
+       <% for (int i = 0; i < 3; i++) %>
                <p>hello, world</p>
-[}]
+<% } %>
 
-[void html() {]
+<% void html() { %>
 <html>
        <body>
-               [body();]
+               <% body(); %>
        </body>
 </html>
-[}]
+<% } %>