aboutsummaryrefslogtreecommitdiff
path: root/examples/http-server/sample-site/random.tm
blob: 29b93be716532a651b6193b6c91b632fbb10ee59 (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>
    ")