diff --git a/eg/tryhy/js/repl.js b/eg/tryhy/js/repl.js
index d2dd5a6..59899e0 100644
--- a/eg/tryhy/js/repl.js
+++ b/eg/tryhy/js/repl.js
@@ -25,7 +25,10 @@ $(document).ready(function(){
animateScroll:true,
promptHistory:true,
autofocus:true,
- welcomeMessage: 'hy ({hy_version})'.supplant({hy_version: hy_version})
+ welcomeMessage: 'hy ({hy_version}) [{server_software}]'.supplant({
+ hy_version: hy_version,
+ server_software: server_software
+ })
});
console.promptText('(+ 41 1)');
});
diff --git a/eg/tryhy/main.hy b/eg/tryhy/main.hy
index 6d796a1..1dc326f 100644
--- a/eg/tryhy/main.hy
+++ b/eg/tryhy/main.hy
@@ -1,4 +1,5 @@
-(import [sys]
+(import [os]
+ [sys]
[StringIO [StringIO]]
[json]
[hy.cmdline [HyREPL]]
@@ -22,7 +23,8 @@
(with-decorator (kwapply (app.route "/") {"methods" ["GET"]})
(fn []
- (kwapply (render_template "index.html") {"hy_version" hy.__version__})
+ (kwapply (render_template "index.html")
+ {"hy_version" hy.__version__ "server_software" (get os.environ "SERVER_SOFTWARE")})
))
(with-decorator (kwapply (app.route "/eval") {"methods" ["POST"]})
diff --git a/eg/tryhy/templates/index.html b/eg/tryhy/templates/index.html
index 6cb7896..a88c261 100644
--- a/eg/tryhy/templates/index.html
+++ b/eg/tryhy/templates/index.html
@@ -8,6 +8,7 @@