aboutsummaryrefslogtreecommitdiff
path: root/examples/http-server/sample-site
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-02 16:19:57 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-02 16:19:57 -0400
commit2685c4c31ffad356a73f1e0ec69606b6136bca47 (patch)
tree6f32c23cebbb6e83a2fff09f523ceac75c3a976c /examples/http-server/sample-site
parent639de3e5df6af1ed236cf1b849bbcf0894c7d8ad (diff)
Move HTML into script
Diffstat (limited to 'examples/http-server/sample-site')
-rwxr-xr-xexamples/http-server/sample-site/random.tm14
1 files changed, 13 insertions, 1 deletions
diff --git a/examples/http-server/sample-site/random.tm b/examples/http-server/sample-site/random.tm
index 7d183ee9..502618e8 100755
--- a/examples/http-server/sample-site/random.tm
+++ b/examples/http-server/sample-site/random.tm
@@ -2,4 +2,16 @@
use random
func main():
- say("Random: $(random:int(1,100))")
+ 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>
+ ")