aboutsummaryrefslogtreecommitdiff
path: root/examples/http-server/sample-site/random.tm
blob: 153ac2af5671e938c8a7eae2e5808aeffb099c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/env tomo
use random

func main()
    say("
        <!DOCTYPE HTML>
        <html>
        <head>
        <title>Random Number</title>
        <link rel="stylesheet" href="styles.css">
        </head>
        <body>
        <h1>Random Number</h1>
        Your random number is: $(random.int(1,100))
        </body>
        </html>
    ")