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