Created
September 15, 2013 06:15
-
-
Save ThomasLocke/6568434 to your computer and use it in GitHub Desktop.
Using the Ada Web Server (AWS), part 2 - snippet 9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@-- | |
| @@-- First we define a macro. | |
| @@-- | |
| @@MACRO(F)@@ | |
| <span style="font-style: italic;">F</span><span style="font-size: 60%;">@_$1_@</span> | |
| @@END_MACRO@@ | |
| @@-- | |
| @@-- And then comes the actual HTML5 document | |
| @@-- | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Hello world!</title> | |
| </head> | |
| <body> | |
| <h1>Hello world!</h1> | |
| <p>Browser used : @_BROWSER_@</p> | |
| <h2>Fibonacci's from 0 to 9</h2> | |
| <table> | |
| @@TABLE@@ | |
| <tr> | |
| <td>@_F(@_POSITION_@)_@</td> | |
| <td>@_FIBONACCI_@</td> | |
| </tr> | |
| @@END_TABLE@@ | |
| </table> | |
| <p>Now is @_NOW_@</p> | |
| <p>Now reversed is @_REVERSE:NOW_@</p> | |
| <p>Click <a href="/helloworld.tmpl">here</a> to see the hello_world.tmpl file.</p> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment